Coverage report: 71.14%

Files Functions Classes

coverage.py v7.10.5, created at 2025-08-24 18:36 +0200

File function statements missing excluded branches partial coverage
src/dependenpy/_internal/__init__.py (no function) 0 0 0 0 0 100.00%
src/dependenpy/_internal/cli.py _DebugInfo.__init__ 1 0 0 0 0 100.00%
src/dependenpy/_internal/cli.py _DebugInfo.__call__ 2 0 0 0 0 100.00%
src/dependenpy/_internal/cli.py get_parser 17 0 0 0 0 100.00%
src/dependenpy/_internal/cli.py _open_if_str 4 2 0 2 1 50.00%
src/dependenpy/_internal/cli.py _get_indent 7 4 0 6 2 38.46%
src/dependenpy/_internal/cli.py _get_depth 1 0 0 0 0 100.00%
src/dependenpy/_internal/cli.py _get_packages 9 0 0 10 1 94.74%
src/dependenpy/_internal/cli.py _run 11 2 0 8 1 73.68%
src/dependenpy/_internal/cli.py main 13 2 0 4 0 88.24%
src/dependenpy/_internal/cli.py (no function) 20 0 2 0 0 100.00%
src/dependenpy/_internal/debug.py _interpreter_name_version 8 2 0 4 2 66.67%
src/dependenpy/_internal/debug.py _get_version 4 2 0 0 0 50.00%
src/dependenpy/_internal/debug.py _get_debug_info 4 0 0 0 0 100.00%
src/dependenpy/_internal/debug.py _print_debug_info 9 1 0 4 1 84.62%
src/dependenpy/_internal/debug.py (no function) 38 1 0 2 1 95.00%
src/dependenpy/_internal/dsm.py DSM.__init__ 24 0 0 10 0 100.00%
src/dependenpy/_internal/dsm.py DSM.__str__ 2 0 0 0 0 100.00%
src/dependenpy/_internal/dsm.py DSM.isdsm 1 0 0 0 0 100.00%
src/dependenpy/_internal/dsm.py DSM.build_tree 4 1 0 4 1 75.00%
src/dependenpy/_internal/dsm.py Package.__init__ 16 1 0 2 1 88.89%
src/dependenpy/_internal/dsm.py Package.ispackage 1 1 0 0 0 0.00%
src/dependenpy/_internal/dsm.py Package.issubpackage 1 1 0 0 0 0.00%
src/dependenpy/_internal/dsm.py Package.isroot 1 1 0 0 0 0.00%
src/dependenpy/_internal/dsm.py Package.split_limits_heads 9 5 0 4 1 38.46%
src/dependenpy/_internal/dsm.py Package.build_tree 10 0 0 10 2 90.00%
src/dependenpy/_internal/dsm.py Package.cardinal 1 0 0 0 0 100.00%
src/dependenpy/_internal/dsm.py Module.__init__ 11 0 0 0 0 100.00%
src/dependenpy/_internal/dsm.py Module.__contains__ 3 0 0 2 0 100.00%
src/dependenpy/_internal/dsm.py Module.ismodule 1 1 0 0 0 0.00%
src/dependenpy/_internal/dsm.py Module.as_dict 1 1 0 0 0 0.00%
src/dependenpy/_internal/dsm.py Module._to_text 11 2 0 4 1 80.00%
src/dependenpy/_internal/dsm.py Module._to_csv 7 7 0 2 0 0.00%
src/dependenpy/_internal/dsm.py Module._to_json 2 2 0 0 0 0.00%
src/dependenpy/_internal/dsm.py Module.build_dependencies 9 0 0 6 0 100.00%
src/dependenpy/_internal/dsm.py Module.parse_code 10 6 0 0 0 40.00%
src/dependenpy/_internal/dsm.py Module.get_imports 15 0 0 12 0 100.00%
src/dependenpy/_internal/dsm.py Module.cardinal 1 0 0 0 0 100.00%
src/dependenpy/_internal/dsm.py Dependency.__init__ 8 0 0 0 0 100.00%
src/dependenpy/_internal/dsm.py Dependency.__str__ 3 0 0 0 0 100.00%
src/dependenpy/_internal/dsm.py Dependency.external 1 0 0 0 0 100.00%
src/dependenpy/_internal/dsm.py (no function) 48 0 2 0 0 100.00%
src/dependenpy/_internal/finder.py PackageSpec.__init__ 6 0 0 0 0 100.00%
src/dependenpy/_internal/finder.py PackageSpec.__hash__ 1 0 0 0 0 100.00%
src/dependenpy/_internal/finder.py PackageSpec.ismodule 1 0 0 0 0 100.00%
src/dependenpy/_internal/finder.py PackageSpec.add 3 3 0 4 0 0.00%
src/dependenpy/_internal/finder.py PackageSpec.combine 6 1 0 4 1 80.00%
src/dependenpy/_internal/finder.py PackageFinder.find 1 1 0 0 0 0.00%
src/dependenpy/_internal/finder.py LocalPackageFinder.find 12 10 0 10 1 13.64%
src/dependenpy/_internal/finder.py InstalledPackageFinder.find 16 7 0 10 3 53.85%
src/dependenpy/_internal/finder.py Finder.__init__ 6 1 0 2 1 75.00%
src/dependenpy/_internal/finder.py Finder.find 5 0 0 4 0 100.00%
src/dependenpy/_internal/finder.py (no function) 21 0 0 0 0 100.00%
src/dependenpy/_internal/helpers.py PrintMixin.print 10 6 0 10 3 35.00%
src/dependenpy/_internal/helpers.py PrintMixin._to_text 1 1 0 0 0 0.00%
src/dependenpy/_internal/helpers.py PrintMixin._to_csv 1 1 0 0 0 0.00%
src/dependenpy/_internal/helpers.py PrintMixin._to_json 1 1 0 0 0 0.00%
src/dependenpy/_internal/helpers.py guess_depth 3 0 0 2 0 100.00%
src/dependenpy/_internal/helpers.py (no function) 17 0 2 0 0 100.00%
src/dependenpy/_internal/node.py NodeMixin.ismodule 1 0 0 0 0 100.00%
src/dependenpy/_internal/node.py NodeMixin.ispackage 1 0 0 0 0 100.00%
src/dependenpy/_internal/node.py NodeMixin.isdsm 1 1 0 0 0 0.00%
src/dependenpy/_internal/node.py RootNode.__init__ 12 0 0 2 0 100.00%
src/dependenpy/_internal/node.py RootNode.__contains__ 3 0 0 2 0 100.00%
src/dependenpy/_internal/node.py RootNode.__getitem__ 13 1 0 12 3 84.00%
src/dependenpy/_internal/node.py RootNode.__bool__ 1 0 0 0 0 100.00%
src/dependenpy/_internal/node.py RootNode.empty 1 0 0 0 0 100.00%
src/dependenpy/_internal/node.py RootNode.submodules 5 0 0 2 0 100.00%
src/dependenpy/_internal/node.py RootNode.build_tree 1 1 0 0 0 0.00%
src/dependenpy/_internal/node.py RootNode._contains 6 0 0 6 0 100.00%
src/dependenpy/_internal/node.py RootNode.get 7 2 0 2 1 66.67%
src/dependenpy/_internal/node.py RootNode.get_target 3 0 0 2 0 100.00%
src/dependenpy/_internal/node.py RootNode._get_target 15 0 0 14 1 96.55%
src/dependenpy/_internal/node.py RootNode.build_dependencies 4 0 0 4 0 100.00%
src/dependenpy/_internal/node.py RootNode.print_graph 2 2 0 0 0 0.00%
src/dependenpy/_internal/node.py RootNode.print_matrix 2 0 0 0 0 100.00%
src/dependenpy/_internal/node.py RootNode.print_treemap 2 0 0 0 0 100.00%
src/dependenpy/_internal/node.py RootNode._to_text 12 0 0 6 0 100.00%
src/dependenpy/_internal/node.py RootNode._to_csv 6 6 0 2 0 0.00%
src/dependenpy/_internal/node.py RootNode._to_json 1 1 0 0 0 0.00%
src/dependenpy/_internal/node.py RootNode.as_dict 1 1 0 0 0 0.00%
src/dependenpy/_internal/node.py RootNode.as_graph 3 3 0 2 0 0.00%
src/dependenpy/_internal/node.py RootNode.as_matrix 3 0 0 2 1 80.00%
src/dependenpy/_internal/node.py RootNode.as_treemap 3 1 0 2 1 60.00%
src/dependenpy/_internal/node.py LeafNode.__init__ 1 0 0 0 0 100.00%
src/dependenpy/_internal/node.py LeafNode.__str__ 1 0 0 0 0 100.00%
src/dependenpy/_internal/node.py LeafNode.root 4 4 0 2 0 0.00%
src/dependenpy/_internal/node.py LeafNode.depth 8 0 0 4 0 100.00%
src/dependenpy/_internal/node.py LeafNode.absolute_name 11 0 0 6 0 100.00%
src/dependenpy/_internal/node.py (no function) 45 0 2 0 0 100.00%
src/dependenpy/_internal/plugins.py (no function) 22 15 0 2 0 29.17%
src/dependenpy/_internal/structures.py Matrix.__init__ 43 14 0 36 4 59.49%
src/dependenpy/_internal/structures.py Matrix.cast 4 4 0 0 0 0.00%
src/dependenpy/_internal/structures.py Matrix.total 1 1 0 0 0 0.00%
src/dependenpy/_internal/structures.py Matrix._to_csv 5 5 0 2 0 0.00%
src/dependenpy/_internal/structures.py Matrix._to_json 1 1 0 0 0 0.00%
src/dependenpy/_internal/structures.py Matrix._to_text 26 1 0 10 1 94.44%
src/dependenpy/_internal/structures.py TreeMap.__init__ 2 0 0 0 0 100.00%
src/dependenpy/_internal/structures.py TreeMap._to_csv 1 1 0 0 0 0.00%
src/dependenpy/_internal/structures.py TreeMap._to_json 1 1 0 0 0 0.00%
src/dependenpy/_internal/structures.py TreeMap._to_text 1 0 0 0 0 100.00%
src/dependenpy/_internal/structures.py Vertex.__init__ 6 6 0 0 0 0.00%
src/dependenpy/_internal/structures.py Vertex.__str__ 1 1 0 0 0 0.00%
src/dependenpy/_internal/structures.py Vertex.connect_to 4 4 0 4 0 0.00%
src/dependenpy/_internal/structures.py Vertex.connect_from 4 4 0 4 0 0.00%
src/dependenpy/_internal/structures.py Edge.__init__ 8 8 0 0 0 0.00%
src/dependenpy/_internal/structures.py Edge.__str__ 1 1 0 0 0 0.00%
src/dependenpy/_internal/structures.py Edge.go_from 4 4 0 2 0 0.00%
src/dependenpy/_internal/structures.py Edge.go_in 4 4 0 2 0 0.00%
src/dependenpy/_internal/structures.py Graph.__init__ 12 12 0 8 0 0.00%
src/dependenpy/_internal/structures.py Graph._to_csv 8 8 0 6 0 0.00%
src/dependenpy/_internal/structures.py Graph._to_json 1 1 0 0 0 0.00%
src/dependenpy/_internal/structures.py Graph._to_text 1 1 0 0 0 0.00%
src/dependenpy/_internal/structures.py (no function) 35 0 2 0 0 100.00%
src/dependenpy/cli.py __getattr__ 2 2 0 0 0 0.00%
src/dependenpy/cli.py (no function) 4 4 0 0 0 0.00%
src/dependenpy/debug.py __getattr__ 2 2 0 0 0 0.00%
src/dependenpy/debug.py (no function) 4 4 0 0 0 0.00%
src/dependenpy/dsm.py __getattr__ 2 2 0 0 0 0.00%
src/dependenpy/dsm.py (no function) 4 4 0 0 0 0.00%
src/dependenpy/finder.py __getattr__ 2 2 0 0 0 0.00%
src/dependenpy/finder.py (no function) 4 4 0 0 0 0.00%
src/dependenpy/helpers.py __getattr__ 2 2 0 0 0 0.00%
src/dependenpy/helpers.py (no function) 4 4 0 0 0 0.00%
src/dependenpy/node.py __getattr__ 2 2 0 0 0 0.00%
src/dependenpy/node.py (no function) 4 4 0 0 0 0.00%
src/dependenpy/plugins.py __getattr__ 2 2 0 0 0 0.00%
src/dependenpy/plugins.py (no function) 4 4 0 0 0 0.00%
src/dependenpy/structures.py __getattr__ 2 2 0 0 0 0.00%
src/dependenpy/structures.py (no function) 4 4 0 0 0 0.00%
tests/conftest.py (no function) 0 0 0 0 0 100.00%
tests/test_api.py _fixture_loader 4 0 0 0 0 100.00%
tests/test_api.py _fixture_internal_api 1 0 0 0 0 100.00%
tests/test_api.py _fixture_public_api 1 0 0 0 0 100.00%
tests/test_api.py _yield_public_objects 15 2 0 12 2 85.19%
tests/test_api.py _fixture_modulelevel_internal_objects 1 0 0 0 0 100.00%
tests/test_api.py _fixture_internal_objects 1 1 0 0 0 0.00%
tests/test_api.py _fixture_public_objects 1 1 0 0 0 0.00%
tests/test_api.py _fixture_inventory 5 2 0 2 1 57.14%
tests/test_api.py test_exposed_objects 2 0 0 0 0 100.00%
tests/test_api.py test_unique_names 5 0 0 2 0 100.00%
tests/test_api.py test_single_locations 7 1 0 4 1 81.82%
tests/test_api.py test_single_locations._public_path 1 1 0 0 0 0.00%
tests/test_api.py test_api_matches_inventory 4 4 0 0 0 0.00%
tests/test_api.py test_inventory_matches_api 10 10 0 6 0 0.00%
tests/test_api.py test_no_module_docstrings_in_internal_api 3 0 0 2 0 100.00%
tests/test_api.py test_no_module_docstrings_in_internal_api._modules 3 0 0 2 0 100.00%
tests/test_api.py (no function) 29 0 2 0 0 100.00%
tests/test_cli.py test_main 3 0 0 0 0 100.00%
tests/test_cli.py test_show_help 4 0 0 0 0 100.00%
tests/test_cli.py test_show_version 4 0 0 0 0 100.00%
tests/test_cli.py test_show_debug_info 7 0 0 0 0 100.00%
tests/test_cli.py (no function) 8 0 0 0 0 100.00%
tests/test_dependenpy.py test_main_ok 1 0 0 0 0 100.00%
tests/test_dependenpy.py test_main_not_ok 1 0 0 0 0 100.00%
tests/test_dependenpy.py test_tree 4 0 0 2 0 100.00%
tests/test_dependenpy.py test_inner_imports 4 0 0 0 0 100.00%
tests/test_dependenpy.py test_delayed_build 4 0 0 0 0 100.00%
tests/test_dependenpy.py (no function) 10 0 0 0 0 100.00%
Total   1026 267 12 322 40 71.14%

No items found using the specified filter.