Coverage report: 85%

Files Functions Classes

coverage.py v7.6.1, created at 2025-04-04 18:27 -0600

File class statements missing excluded coverage
muutils/__init__.py (no class) 2 0 0 100%
muutils/console_unicode.py (no class) 7 0 0 100%
muutils/dbg.py _NoExpPassedSentinel 0 0 0 100%
muutils/dbg.py (no class) 61 4 0 93%
muutils/dictmagic.py DefaulterDict 9 9 0 0%
muutils/dictmagic.py (no class) 151 14 0 91%
muutils/errormode.py WarningFunc 0 0 0 100%
muutils/errormode.py ErrorMode 39 3 0 92%
muutils/errormode.py (no class) 36 28 0 22%
muutils/group_equiv.py (no class) 29 0 0 100%
muutils/interval.py Interval 224 6 0 97%
muutils/interval.py ClosedInterval 3 0 0 100%
muutils/interval.py OpenInterval 3 0 0 100%
muutils/interval.py (no class) 48 0 0 100%
muutils/json_serialize/__init__.py (no class) 6 6 0 0%
muutils/json_serialize/array.py (no class) 95 36 0 62%
muutils/json_serialize/dataclass_transform_mock.py (no class) 8 8 0 0%
muutils/json_serialize/json_serialize.py SerializerHandler 1 1 0 0%
muutils/json_serialize/json_serialize.py JsonSerializer 27 13 0 52%
muutils/json_serialize/json_serialize.py (no class) 36 32 0 11%
muutils/json_serialize/serializable_dataclass.py CantGetTypeHintsWarning 0 0 0 100%
muutils/json_serialize/serializable_dataclass.py ZanjMissingWarning 0 0 0 100%
muutils/json_serialize/serializable_dataclass.py FieldIsNotInitOrSerializeWarning 0 0 0 100%
muutils/json_serialize/serializable_dataclass.py SerializableDataclass 43 16 0 63%
muutils/json_serialize/serializable_dataclass.py KWOnlyError 0 0 0 100%
muutils/json_serialize/serializable_dataclass.py FieldError 0 0 0 100%
muutils/json_serialize/serializable_dataclass.py NotSerializableFieldException 0 0 0 100%
muutils/json_serialize/serializable_dataclass.py FieldSerializationError 0 0 0 100%
muutils/json_serialize/serializable_dataclass.py FieldLoadingError 0 0 0 100%
muutils/json_serialize/serializable_dataclass.py FieldTypeMismatchError 0 0 0 100%
muutils/json_serialize/serializable_dataclass.py (no class) 213 96 0 55%
muutils/json_serialize/serializable_field.py SerializableField 20 6 0 70%
muutils/json_serialize/serializable_field.py (no class) 20 18 0 10%
muutils/json_serialize/util.py UniversalContainer 1 0 0 100%
muutils/json_serialize/util.py SerializationException 0 0 0 100%
muutils/json_serialize/util.py (no class) 114 65 0 43%
muutils/jsonlines.py (no class) 32 32 0 0%
muutils/kappa.py Kappa 5 0 0 100%
muutils/kappa.py (no class) 10 0 0 100%
muutils/logger/__init__.py (no class) 7 0 0 100%
muutils/logger/exception_context.py ExceptionContext 6 6 0 0%
muutils/logger/exception_context.py (no class) 6 0 0 100%
muutils/logger/headerfuncs.py HeaderFunction 1 0 0 100%
muutils/logger/headerfuncs.py (no class) 18 1 0 94%
muutils/logger/log_util.py (no class) 32 32 0 0%
muutils/logger/logger.py Logger 70 18 0 74%
muutils/logger/logger.py (no class) 28 7 0 75%
muutils/logger/loggingstream.py LoggingStream 22 12 0 45%
muutils/logger/loggingstream.py (no class) 18 0 0 100%
muutils/logger/simplelogger.py NullIO 4 4 0 0%
muutils/logger/simplelogger.py SimpleLogger 21 15 0 29%
muutils/logger/simplelogger.py (no class) 16 0 0 100%
muutils/logger/timing.py TimerContext 8 0 0 100%
muutils/logger/timing.py ProgressEstimator 15 15 0 0%
muutils/logger/timing.py (no class) 16 3 0 81%
muutils/misc/__init__.py (no class) 7 0 0 100%
muutils/misc/b64_decode.py (no class) 8 8 0 0%
muutils/misc/classes.py IsDataclass 0 0 0 100%
muutils/misc/classes.py (no class) 23 5 0 78%
muutils/misc/freezing.py FrozenDict 2 0 0 100%
muutils/misc/freezing.py FrozenList 8 3 0 62%
muutils/misc/freezing.py (no class) 63 5 0 92%
muutils/misc/func.py (no class) 86 14 0 84%
muutils/misc/hashing.py (no class) 19 8 0 58%
muutils/misc/numerical.py (no class) 68 3 0 96%
muutils/misc/sequence.py (no class) 59 1 0 98%
muutils/misc/string.py (no class) 34 5 0 85%
muutils/mlutils.py (no class) 72 44 0 39%
muutils/nbutils/__init__.py (no class) 2 0 0 100%
muutils/nbutils/configure_notebook.py PlotlyNotInstalledWarning 0 0 0 100%
muutils/nbutils/configure_notebook.py UnknownFigureFormatWarning 0 0 0 100%
muutils/nbutils/configure_notebook.py (no class) 133 80 0 40%
muutils/nbutils/convert_ipynb_to_script.py (no class) 125 41 0 67%
muutils/nbutils/mermaid.py (no class) 11 7 0 36%
muutils/nbutils/print_tex.py (no class) 10 10 0 0%
muutils/nbutils/run_notebook_tests.py NotebookTestError 0 0 0 100%
muutils/nbutils/run_notebook_tests.py (no class) 87 17 0 80%
muutils/parallel.py ProgressBarFunction 1 0 0 100%
muutils/parallel.py (no class) 91 6 0 93%
muutils/spinner.py SpinnerConfig 15 0 0 100%
muutils/spinner.py Spinner 65 4 0 94%
muutils/spinner.py NoOpContextManager 3 3 0 0%
muutils/spinner.py SpinnerContext 3 0 0 100%
muutils/spinner.py (no class) 61 3 0 95%
muutils/statcounter.py StatCounter 50 22 0 56%
muutils/statcounter.py (no class) 39 10 0 74%
muutils/sysinfo.py SysInfo 47 9 0 81%
muutils/sysinfo.py (no class) 31 5 0 84%
muutils/tensor_info.py _UseDefaultType 0 0 0 100%
muutils/tensor_info.py (no class) 199 23 0 88%
muutils/tensor_utils.py jaxtype_factory._BaseArray 23 9 0 61%
muutils/tensor_utils.py ATensor 1 1 0 0%
muutils/tensor_utils.py NDArray 1 1 0 0%
muutils/tensor_utils.py StateDictCompareError 0 0 0 100%
muutils/tensor_utils.py StateDictKeysError 0 0 0 100%
muutils/tensor_utils.py StateDictShapeError 0 0 0 100%
muutils/tensor_utils.py StateDictValueError 0 0 0 100%
muutils/tensor_utils.py (no class) 108 7 0 94%
muutils/timeit_fancy.py FancyTimeitResult 0 0 0 100%
muutils/timeit_fancy.py (no class) 31 0 0 100%
muutils/validate_type.py IncorrectTypeException 0 0 0 100%
muutils/validate_type.py TypeHintNotImplementedError 0 0 0 100%
muutils/validate_type.py InvalidGenericAliasError 0 0 0 100%
muutils/validate_type.py (no class) 90 23 0 74%
tests/conftest.py (no class) 0 0 0 100%
tests/unit/errormode/test_errormode_functionality.py test_except_custom.MyCustomError 0 0 0 100%
tests/unit/errormode/test_errormode_functionality.py test_warn_custom.MyCustomWarning 0 0 0 100%
tests/unit/errormode/test_errormode_functionality.py (no class) 62 1 0 98%
tests/unit/errormode/test_errormode_init.py (no class) 68 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case1.TestClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case2.TestClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case3.TestClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case4.TestClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case4.TestClass2 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case5.TestClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case5.TestClass2 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case6.TestClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case6.TestClass2 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case7.TestClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py test_dc_eq_case7.TestClass2 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_helpers.py (no class) 102 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py SimpleClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py test_default_overrides.DefaultClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py test_no_override_serialize.NoSerializeClass 1 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py test_no_override_eq_and_serialize.NoEqSerializeClass 4 1 0 75%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py test_inheritance_override.BaseClass 1 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py test_inheritance_override.SubClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py test_inheritance_override.SubClassPreserve 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py test_polymorphic_behavior.PolyA 1 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py test_polymorphic_behavior.PolyB 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py test_unknown_methods_warning.UnknownMethodClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_methods_no_override.py (no class) 106 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_sdc_defaults.py Config 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_sdc_defaults.py ComplicatedConfig 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_sdc_defaults.py (no class) 33 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_sdc_properties_nested.py Person 1 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_sdc_properties_nested.py TitledPerson 1 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_sdc_properties_nested.py AgedPerson_not_valid 1 1 0 0%
tests/unit/json_serialize/serializable_dataclass/test_sdc_properties_nested.py (no class) 42 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py BasicAutofields 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py SimpleFields 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py FieldOptions 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py WithProperty 1 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py Child 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py Address 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py Person 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_with_printing.MyClass 1 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_simple_class_serialization.SimpleClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_error_when_init_and_not_serialize.SimpleClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_person_serialization.FullPerson 1 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_custom_serialization.CustomSerialization 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py Nested_with_Container 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py Custom_class_with_serialization 5 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py nested_custom 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_deserialize_fn.DeserializeFn 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py DictContainer 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py ComplexDictContainer 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py StrictDictContainer 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py OptionalDictContainer 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py IntKeyDictContainer 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py RecursiveDictContainer 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py CustomSerializable 4 3 0 25%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_dict_with_custom_objects.CustomObjectDict 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_empty_optional_dicts.OptionalDictFields 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py BaseClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py ChildClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py GrandchildClass 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_generic_types.GenericContainer 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py CustomObject 2 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py CustomSerializationContainer 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_init_true_serialize_false.MetadataContainer 1 1 0 0%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py PropertyContainer 2 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_edge_cases.EdgeCaseContainer 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py test_cyclic_references.Node 0 0 0 100%
tests/unit/json_serialize/serializable_dataclass/test_serializable_dataclass.py (no class) 472 57 0 88%
tests/unit/json_serialize/test_array.py TestYourModule 27 0 0 100%
tests/unit/json_serialize/test_array.py (no class) 13 0 0 100%
tests/unit/json_serialize/test_util.py test_isinstance_namedtuple.Point2 0 0 0 100%
tests/unit/json_serialize/test_util.py (no class) 49 2 0 96%
tests/unit/logger/test_logger.py (no class) 11 0 0 100%
tests/unit/logger/test_timer_context.py (no class) 11 0 0 100%
tests/unit/misc/test_freeze.py test_freeze_custom_class.CustomClass 1 0 0 100%
tests/unit/misc/test_freeze.py CustomClass 1 0 0 100%
tests/unit/misc/test_freeze.py test_freeze_class_with_nested_structures.NestedClass 4 0 0 100%
tests/unit/misc/test_freeze.py (no class) 115 0 0 100%
tests/unit/misc/test_func.py (no class) 175 7 0 96%
tests/unit/misc/test_misc.py test_freeze.TestClass 1 0 0 100%
tests/unit/misc/test_misc.py A 0 0 0 100%
tests/unit/misc/test_misc.py B 0 0 0 100%
tests/unit/misc/test_misc.py C 0 0 0 100%
tests/unit/misc/test_misc.py test_get_all_subclasses2.A 0 0 0 100%
tests/unit/misc/test_misc.py test_get_all_subclasses2.B 0 0 0 100%
tests/unit/misc/test_misc.py test_get_all_subclasses2.C 0 0 0 100%
tests/unit/misc/test_misc.py test_get_all_subclasses2.D 0 0 0 100%
tests/unit/misc/test_misc.py test_get_all_subclasses2.E 0 0 0 100%
tests/unit/misc/test_misc.py test_get_all_subclasses2.F 0 0 0 100%
tests/unit/misc/test_misc.py test_get_all_subclasses2.Z 0 0 0 100%
tests/unit/misc/test_misc.py DC1 0 0 0 100%
tests/unit/misc/test_misc.py DC2 0 0 0 100%
tests/unit/misc/test_misc.py DC3 0 0 0 100%
tests/unit/misc/test_misc.py DC4 0 0 0 100%
tests/unit/misc/test_misc.py DC5 0 0 0 100%
tests/unit/misc/test_misc.py DC6 0 0 0 100%
tests/unit/misc/test_misc.py DC7 1 1 0 0%
tests/unit/misc/test_misc.py DC8 1 1 0 0%
tests/unit/misc/test_misc.py DC9 1 1 0 0%
tests/unit/misc/test_misc.py (no class) 144 2 0 99%
tests/unit/misc/test_numerical_conversions.py (no class) 43 0 0 100%
tests/unit/misc/test_sequence.py (no class) 73 0 0 100%
tests/unit/nbutils/test_configure_notebook.py (no class) 70 0 0 100%
tests/unit/nbutils/test_conversion.py (no class) 47 2 0 96%
tests/unit/test_chunks.py (no class) 31 0 0 100%
tests/unit/test_console_unicode.py (no class) 8 0 0 100%
tests/unit/test_dbg.py DummyTensor 1 1 0 0%
tests/unit/test_dbg.py DummyTensorNormal 1 1 0 0%
tests/unit/test_dbg.py DummyTensorPartial 0 0 0 100%
tests/unit/test_dbg.py test_dbg_multiline_code_context.FakeFrame 3 0 0 100%
tests/unit/test_dbg.py test_dbg_incomplete_expression.FakeFrame 3 0 0 100%
tests/unit/test_dbg.py (no class) 108 0 0 100%
tests/unit/test_dictmagic.py ChildData 0 0 0 100%
tests/unit/test_dictmagic.py ParentData 0 0 0 100%
tests/unit/test_dictmagic.py MockTensor 1 0 0 100%
tests/unit/test_dictmagic.py (no class) 130 0 0 100%
tests/unit/test_group_equiv.py (no class) 13 0 0 100%
tests/unit/test_import_torch.py (no class) 4 0 0 100%
tests/unit/test_interval.py (no class) 899 1 0 99%
tests/unit/test_kappa.py (no class) 39 0 0 100%
tests/unit/test_mlutils.py test_register_method.TestEvalsA 2 2 0 0%
tests/unit/test_mlutils.py test_register_method.TestEvalsB 1 1 0 0%
tests/unit/test_mlutils.py (no class) 40 3 0 92%
tests/unit/test_parallel.py ComplexObject 2 0 0 100%
tests/unit/test_parallel.py (no class) 130 5 0 96%
tests/unit/test_spinner.py test_spinner_output_stream_errors.BrokenStream 2 2 0 0%
tests/unit/test_spinner.py (no class) 293 6 0 98%
tests/unit/test_statcounter.py (no class) 14 0 0 100%
tests/unit/test_sysinfo.py (no class) 6 0 0 100%
tests/unit/test_tensor_info.py (no class) 95 9 0 91%
tests/unit/test_tensor_utils.py (no class) 51 0 0 100%
tests/unit/test_timeit_fancy.py (no class) 69 0 0 100%
tests/unit/validate_type/test_get_kwargs.py test_with_class_method.MyClass 1 1 0 0%
tests/unit/validate_type/test_get_kwargs.py (no class) 52 12 0 77%
tests/unit/validate_type/test_validate_type.py test_validate_type_inheritance.Parent 2 0 0 100%
tests/unit/validate_type/test_validate_type.py test_validate_type_inheritance.Child 2 0 0 100%
tests/unit/validate_type/test_validate_type.py test_validate_type_class.Parent 2 2 0 0%
tests/unit/validate_type/test_validate_type.py test_validate_type_class.Child 2 2 0 0%
tests/unit/validate_type/test_validate_type.py test_validate_type_class_union.Parent 2 2 0 0%
tests/unit/validate_type/test_validate_type.py test_validate_type_class_union.Child 2 2 0 0%
tests/unit/validate_type/test_validate_type.py test_validate_type_class_union.Other 2 2 0 0%
tests/unit/validate_type/test_validate_type.py (no class) 192 35 0 82%
tests/unit/validate_type/test_validate_type_GENERATED.py test_validate_type_inheritance.Parent 2 0 0 100%
tests/unit/validate_type/test_validate_type_GENERATED.py test_validate_type_inheritance.Child 2 0 0 100%
tests/unit/validate_type/test_validate_type_GENERATED.py test_validate_type_class.Parent 2 2 0 0%
tests/unit/validate_type/test_validate_type_GENERATED.py test_validate_type_class.Child 2 2 0 0%
tests/unit/validate_type/test_validate_type_GENERATED.py test_validate_type_class_union.Parent 2 2 0 0%
tests/unit/validate_type/test_validate_type_GENERATED.py test_validate_type_class_union.Child 2 2 0 0%
tests/unit/validate_type/test_validate_type_GENERATED.py test_validate_type_class_union.Other 2 2 0 0%
tests/unit/validate_type/test_validate_type_GENERATED.py (no class) 192 35 0 82%
tests/unit/validate_type/test_validate_type_special.py (no class) 15 3 0 80%
tests/util/test_fire.py (no class) 8 6 0 25%
Total   7341 1106 0 85%

No items found using the specified filter.