Coverage report: 95%

Files Functions Classes

coverage.py v7.6.12, created at 2025-11-06 16:15 +0000

File function statements missing excluded coverage
tests/unit/no_torch/test_bool_array.py test_list_bool_array 6 0 0 100%
tests/unit/no_torch/test_bool_array.py test_np_bool_array 8 0 0 100%
tests/unit/no_torch/test_bool_array.py (no function) 17 0 0 100%
tests/unit/no_torch/test_isolate_zanj_handler_store.py test_Basic 6 0 0 100%
tests/unit/no_torch/test_isolate_zanj_handler_store.py test_isolate_handlers 13 0 0 100%
tests/unit/no_torch/test_isolate_zanj_handler_store.py (no function) 28 1 0 96%
tests/unit/no_torch/test_load_item_recursive.py test_load_item_recursive_basic 7 0 0 100%
tests/unit/no_torch/test_load_item_recursive.py test_load_item_recursive_numpy_array 7 0 0 100%
tests/unit/no_torch/test_load_item_recursive.py test_load_item_recursive_serializable_dataclass 12 0 0 100%
tests/unit/no_torch/test_load_item_recursive.py test_load_item_recursive_nested_container 10 0 0 100%
tests/unit/no_torch/test_load_item_recursive.py test_load_item_recursive_unknown_format 5 0 0 100%
tests/unit/no_torch/test_load_item_recursive.py test_load_item_recursive_with_external_reference 8 0 0 100%
tests/unit/no_torch/test_load_item_recursive.py test_load_item_recursive_error_modes 16 0 0 100%
tests/unit/no_torch/test_load_item_recursive.py test_load_item_recursive_error_modes.CustomHandler.check 1 1 0 0%
tests/unit/no_torch/test_load_item_recursive.py test_load_item_recursive_error_modes.CustomHandler.load 1 0 0 100%
tests/unit/no_torch/test_load_item_recursive.py test_load_item_recursive_error_modes.mock_get_item_loader 1 0 0 100%
tests/unit/no_torch/test_load_item_recursive.py (no function) 18 0 0 100%
tests/unit/no_torch/test_shared_prefix_keys.py test_shared_prefix_keys 14 0 0 100%
tests/unit/no_torch/test_shared_prefix_keys.py (no function) 8 0 0 100%
tests/unit/no_torch/test_zanj_basic.py array_meta 3 0 0 100%
tests/unit/no_torch/test_zanj_basic.py test_numpy 13 0 0 100%
tests/unit/no_torch/test_zanj_basic.py test_jsonl 7 0 0 100%
tests/unit/no_torch/test_zanj_basic.py (no function) 12 0 0 100%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_with_different_configs 22 0 0 100%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_compression_options 22 0 0 100%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_error_modes 9 0 0 100%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_error_modes.ForceExceptionOnSerialize.__repr__ 1 1 0 0%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_error_modes.ExceptionForcingZANJ.json_serialize 3 1 0 67%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_array_modes 18 0 0 100%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_meta 13 0 0 100%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_externals_info 8 0 0 100%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_save_extension 16 0 0 100%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_file_not_found 8 0 0 100%
tests/unit/no_torch/test_zanj_edge_cases.py test_zanj_create_directory 14 0 0 100%
tests/unit/no_torch/test_zanj_edge_cases.py (no function) 18 0 0 100%
tests/unit/no_torch/test_zanj_populate_nested.py test_nested_populate 7 0 0 100%
tests/unit/no_torch/test_zanj_populate_nested.py (no function) 17 0 0 100%
tests/unit/no_torch/test_zanj_serializable_dataclass.py test_Basic 6 0 0 100%
tests/unit/no_torch/test_zanj_serializable_dataclass.py test_Nested 6 0 0 100%
tests/unit/no_torch/test_zanj_serializable_dataclass.py test_Nested_with_container 6 0 0 100%
tests/unit/no_torch/test_zanj_serializable_dataclass.py test_sdc_with_np_array_small 6 0 0 100%
tests/unit/no_torch/test_zanj_serializable_dataclass.py test_sdc_with_np_array 6 0 0 100%
tests/unit/no_torch/test_zanj_serializable_dataclass.py test_sdc_with_df 6 0 0 100%
tests/unit/no_torch/test_zanj_serializable_dataclass.py test_sdc_container_explicit 6 0 0 100%
tests/unit/no_torch/test_zanj_serializable_dataclass.py (no function) 49 0 0 100%
tests/unit/with_torch/test_bool_array_torch.py test_torch_bool_array 8 0 0 100%
tests/unit/with_torch/test_bool_array_torch.py (no function) 11 0 0 100%
tests/unit/with_torch/test_get_module_device.py test_get_module_device_single_device 6 0 0 100%
tests/unit/with_torch/test_get_module_device.py test_get_module_device_multiple_devices 16 1 0 94%
tests/unit/with_torch/test_get_module_device.py test_get_module_device_no_parameters 4 0 0 100%
tests/unit/with_torch/test_get_module_device.py (no function) 7 0 0 100%
tests/unit/with_torch/test_sdc_torch.py test_sdc_tensor_small 6 0 0 100%
tests/unit/with_torch/test_sdc_torch.py test_sdc_tensor 6 0 0 100%
tests/unit/with_torch/test_sdc_torch.py sdc_complicated.__eq__ 1 1 0 0%
tests/unit/with_torch/test_sdc_torch.py test_sdc_complicated 6 0 0 100%
tests/unit/with_torch/test_sdc_torch.py (no function) 40 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_num_params 8 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_get_module_device_empty 7 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_get_module_device_empty.EmptyModule.__init__ 1 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_get_module_device_empty.EmptyModule.forward 1 1 0 0%
tests/unit/with_torch/test_torch_edge_cases.py test_load_state_dict_wrapper 16 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_load_state_dict_wrapper.SimpleModel.__init__ 2 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_load_state_dict_wrapper.SimpleModel.forward 1 1 0 0%
tests/unit/with_torch/test_torch_edge_cases.py test_load_state_dict_wrapper.SimpleModel._load_state_dict_wrapper 2 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_deprecated_load_file 13 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_deprecated_load_file.SimpleModel.__init__ 2 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_deprecated_load_file.SimpleModel.forward 1 1 0 0%
tests/unit/with_torch/test_torch_edge_cases.py test_configmodel_training_records 16 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_configmodel_training_records.SimpleModel.__init__ 3 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_configmodel_training_records.SimpleModel.forward 1 1 0 0%
tests/unit/with_torch/test_torch_edge_cases.py test_configmodel_with_custom_settings 14 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_configmodel_with_custom_settings.CustomStateModel.__init__ 3 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py test_configmodel_with_custom_settings.CustomStateModel.forward 1 1 0 0%
tests/unit/with_torch/test_torch_edge_cases.py test_configmodel_with_custom_settings.CustomStateModel._load_state_dict_wrapper 2 0 0 100%
tests/unit/with_torch/test_torch_edge_cases.py (no function) 14 0 0 100%
tests/unit/with_torch/test_zanj_sdc_modelcfg.py CustomCfg.__init__ 2 0 0 100%
tests/unit/with_torch/test_zanj_sdc_modelcfg.py CustomCfg.__eq__ 1 0 0 100%
tests/unit/with_torch/test_zanj_sdc_modelcfg.py CustomCfg.serialize 1 0 0 100%
tests/unit/with_torch/test_zanj_sdc_modelcfg.py CustomCfg.load 1 0 0 100%
tests/unit/with_torch/test_zanj_sdc_modelcfg.py test_config_holder 11 0 0 100%
tests/unit/with_torch/test_zanj_sdc_modelcfg.py test_config_holder_zanj 9 0 0 100%
tests/unit/with_torch/test_zanj_sdc_modelcfg.py test_adv_config_holder 6 0 0 100%
tests/unit/with_torch/test_zanj_sdc_modelcfg.py test_adv_config_holder_zanj 6 0 0 100%
tests/unit/with_torch/test_zanj_sdc_modelcfg.py (no function) 53 0 0 100%
tests/unit/with_torch/test_zanj_torch.py test_torch_configmodel_minimal 26 0 0 100%
tests/unit/with_torch/test_zanj_torch.py test_torch_configmodel_minimal.MyNN.__init__ 2 0 0 100%
tests/unit/with_torch/test_zanj_torch.py test_torch_configmodel_minimal.MyNN.forward 1 1 0 0%
tests/unit/with_torch/test_zanj_torch.py test_torch_configmodel 41 0 0 100%
tests/unit/with_torch/test_zanj_torch.py test_torch_configmodel.MyGPTConfig.loss 1 1 0 0%
tests/unit/with_torch/test_zanj_torch.py test_torch_configmodel.MyGPTConfig.optim 1 1 0 0%
tests/unit/with_torch/test_zanj_torch.py test_torch_configmodel.MyGPT.__init__ 2 0 0 100%
tests/unit/with_torch/test_zanj_torch.py test_torch_configmodel.MyGPT.forward 1 1 0 0%
tests/unit/with_torch/test_zanj_torch.py (no function) 13 0 0 100%
tests/unit/with_torch/test_zanj_torch_cfgmismatch.py MyGPT.__init__ 2 0 0 100%
tests/unit/with_torch/test_zanj_torch_cfgmismatch.py MyGPT.forward 1 1 0 0%
tests/unit/with_torch/test_zanj_torch_cfgmismatch.py test_config_mismatch_exception_direct 5 0 0 100%
tests/unit/with_torch/test_zanj_torch_cfgmismatch.py test_equal_configs 4 0 0 100%
tests/unit/with_torch/test_zanj_torch_cfgmismatch.py test_unequal_configs 9 1 0 89%
tests/unit/with_torch/test_zanj_torch_cfgmismatch.py test_unequal_configs_2 9 1 0 89%
tests/unit/with_torch/test_zanj_torch_cfgmismatch.py test_incorrect_instance 7 0 0 100%
tests/unit/with_torch/test_zanj_torch_cfgmismatch.py (no function) 22 0 0 100%
zanj/__init__.py (no function) 4 0 0 100%
zanj/externals.py load_jsonl 1 0 0 100%
zanj/externals.py load_npy 1 0 0 100%
zanj/externals.py GET_EXTERNAL_LOAD_FUNC 3 1 0 67%
zanj/externals.py (no function) 16 0 0 100%
zanj/loading.py _populate_externals_error_checking 17 8 0 53%
zanj/loading.py LoaderHandler.serialize 1 0 0 100%
zanj/loading.py LoaderHandler.from_formattedclass 7 7 0 0%
zanj/loading.py _torch_loaderhandler_load 7 3 0 57%
zanj/loading.py register_loader_handler 2 0 0 100%
zanj/loading.py get_item_loader 9 1 0 89%
zanj/loading.py load_item_recursive 15 3 0 80%
zanj/loading.py _each_item_in_externals 15 2 0 87%
zanj/loading.py LoadedZANJ.__init__ 12 0 0 100%
zanj/loading.py LoadedZANJ.populate_externals 4 0 0 100%
zanj/loading.py (no function) 43 4 0 91%
zanj/serializing.py jsonl_metadata 2 0 0 100%
zanj/serializing.py store_npy 1 0 0 100%
zanj/serializing.py store_jsonl 3 0 0 100%
zanj/serializing.py zanj_external_serialize 34 8 0 76%
zanj/serializing.py (no function) 25 0 0 100%
zanj/torchutil.py num_params 5 0 0 100%
zanj/torchutil.py get_module_device 7 0 0 100%
zanj/torchutil.py ConfiguredModel.__init__ 7 2 0 71%
zanj/torchutil.py ConfiguredModel.serialize 4 0 0 100%
zanj/torchutil.py ConfiguredModel.save 3 3 0 0%
zanj/torchutil.py ConfiguredModel._load_state_dict_wrapper 2 0 0 100%
zanj/torchutil.py ConfiguredModel.load 9 1 0 89%
zanj/torchutil.py ConfiguredModel.read 5 0 0 100%
zanj/torchutil.py ConfiguredModel.load_file 2 0 0 100%
zanj/torchutil.py ConfiguredModel.get_handler 2 0 0 100%
zanj/torchutil.py ConfiguredModel.num_params 1 1 0 0%
zanj/torchutil.py set_config_class 4 1 0 75%
zanj/torchutil.py set_config_class.wrapper 3 0 0 100%
zanj/torchutil.py ConfigMismatchException.__init__ 2 0 0 100%
zanj/torchutil.py ConfigMismatchException.__str__ 1 0 0 100%
zanj/torchutil.py assert_model_cfg_equality 7 0 0 100%
zanj/torchutil.py assert_model_exact_equality 12 2 0 83%
zanj/torchutil.py (no function) 40 2 0 95%
zanj/zanj.py ZANJ.__init__ 10 0 0 100%
zanj/zanj.py ZANJ.externals_info 9 1 0 89%
zanj/zanj.py ZANJ.meta 3 0 0 100%
zanj/zanj.py ZANJ.save 18 0 0 100%
zanj/zanj.py ZANJ.read 8 0 0 100%
zanj/zanj.py (no function) 35 0 0 100%
Total   1365 68 0 95%

No items found using the specified filter.