Coverage report: 63.95%

Files Functions Classes

coverage.py v7.7.0, created at 2025-03-19 16:19 +0100

File function statements missing excluded branches partial coverage
src/yore/_internal/__init__.py (no function) 0 0 0 0 0 100.00%
src/yore/_internal/cli.py _FromConfig.__init__ 2 0 0 0 0 100.00%
src/yore/_internal/cli.py _FromConfig._from_config 3 3 0 0 0 0.00%
src/yore/_internal/cli.py _parse_timedelta 3 3 0 0 0 0.00%
src/yore/_internal/cli.py CommandCheck.__call__ 6 6 0 4 0 0.00%
src/yore/_internal/cli.py CommandDiff._diff 5 5 0 2 0 0.00%
src/yore/_internal/cli.py CommandDiff._diff_paths 5 5 0 6 0 0.00%
src/yore/_internal/cli.py CommandDiff.__call__ 11 11 0 6 0 0.00%
src/yore/_internal/cli.py CommandFix._fix 8 8 0 6 0 0.00%
src/yore/_internal/cli.py CommandFix.__call__ 7 7 0 6 0 0.00%
src/yore/_internal/cli.py _print_and_exit 3 0 0 0 0 100.00%
src/yore/_internal/cli.py _print_and_exit._inner 1 0 0 0 0 100.00%
src/yore/_internal/cli.py _load_config 3 3 0 2 0 0.00%
src/yore/_internal/cli.py main 9 0 0 0 0 100.00%
src/yore/_internal/cli.py (no function) 71 0 2 2 0 100.00%
src/yore/_internal/config.py Unset.__init__ 3 0 0 0 0 100.00%
src/yore/_internal/config.py Unset.__bool__ 1 1 0 0 0 0.00%
src/yore/_internal/config.py Unset.__repr__ 1 1 0 0 0 0.00%
src/yore/_internal/config.py Unset.__str__ 1 0 0 0 0 100.00%
src/yore/_internal/config.py config_field 1 0 0 0 0 100.00%
src/yore/_internal/config.py Config._get 7 7 0 6 0 0.00%
src/yore/_internal/config.py Config.from_data 13 13 0 12 0 0.00%
src/yore/_internal/config.py Config.from_file 2 2 0 0 0 0.00%
src/yore/_internal/config.py Config.from_pyproject 2 2 0 0 0 0.00%
src/yore/_internal/config.py Config.from_default_locations 12 12 0 8 0 0.00%
src/yore/_internal/config.py (no function) 36 0 2 4 0 100.00%
src/yore/_internal/debug.py _interpreter_name_version 8 1 0 4 1 83.33%
src/yore/_internal/debug.py _get_version 4 2 0 0 0 50.00%
src/yore/_internal/debug.py _get_debug_info 4 0 0 0 0 100.00%
src/yore/_internal/debug.py _print_debug_info 9 1 0 4 1 84.62%
src/yore/_internal/debug.py (no function) 38 1 0 2 1 95.00%
src/yore/_internal/lib.py _indent 1 0 0 0 0 100.00%
src/yore/_internal/lib.py _block_size 14 0 0 8 0 100.00%
src/yore/_internal/lib.py _scope_range 7 3 0 6 3 53.85%
src/yore/_internal/lib.py _reindent 3 3 0 0 0 0.00%
src/yore/_internal/lib.py _match_to_line 3 1 0 2 1 60.00%
src/yore/_internal/lib.py _match_to_lines 11 0 0 6 0 100.00%
src/yore/_internal/lib.py _match_to_comment 1 0 0 0 0 100.00%
src/yore/_internal/lib.py _within 1 1 0 0 0 0.00%
src/yore/_internal/lib.py _delta 1 1 0 0 0 0.00%
src/yore/_internal/lib.py YoreComment.is_bol 1 0 0 0 0 100.00%
src/yore/_internal/lib.py YoreComment.is_eol 1 0 0 0 0 100.00%
src/yore/_internal/lib.py YoreComment.is_bump 1 0 0 0 0 100.00%
src/yore/_internal/lib.py YoreComment.bol 1 1 0 0 0 0.00%
src/yore/_internal/lib.py YoreComment.eol 1 1 0 0 0 0.00%
src/yore/_internal/lib.py YoreComment.comment 1 1 0 0 0 0.00%
src/yore/_internal/lib.py YoreComment.check 17 17 0 14 0 0.00%
src/yore/_internal/lib.py YoreComment.fix 34 22 0 20 4 29.63%
src/yore/_internal/lib.py get_pattern 1 0 0 0 0 100.00%
src/yore/_internal/lib.py _get_prematching_pattern 1 0 0 0 0 100.00%
src/yore/_internal/lib.py yield_files 12 12 0 8 0 0.00%
src/yore/_internal/lib.py yield_buffer_comments 7 1 0 6 3 69.23%
src/yore/_internal/lib.py yield_file_comments 5 2 0 0 0 60.00%
src/yore/_internal/lib.py yield_directory_comments 2 2 0 2 0 0.00%
src/yore/_internal/lib.py yield_path_comments 3 3 0 2 0 0.00%
src/yore/_internal/lib.py _LazyPythonDates.__getitem__ 3 3 0 2 0 0.00%
src/yore/_internal/lib.py _LazyPythonDates._to_date 10 10 0 4 0 0.00%
src/yore/_internal/lib.py _LazyPythonDates._fetch 5 5 0 2 0 0.00%
src/yore/_internal/lib.py (no function) 110 0 3 2 0 100.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 1 0 12 1 92.59%
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 0 0 0 0 100.00%
tests/test_api.py _fixture_inventory 5 1 0 2 1 71.43%
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 0 0 0 0 100.00%
tests/test_api.py test_api_matches_inventory 4 0 0 0 0 100.00%
tests/test_api.py test_inventory_matches_api 10 1 0 6 1 87.50%
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 1 0 0 0 0 100.00%
tests/test_cli.py test_show_help 3 0 0 0 0 100.00%
tests/test_cli.py test_show_version 3 0 0 0 0 100.00%
tests/test_cli.py test_show_debug_info 6 0 0 0 0 100.00%
tests/test_cli.py (no function) 8 0 2 0 0 100.00%
tests/test_lib.py test_block_size 1 0 0 0 0 100.00%
tests/test_lib.py _Match.__init__ 1 0 0 0 0 100.00%
tests/test_lib.py _Match.group 1 0 0 0 0 100.00%
tests/test_lib.py test_match_to_lines 2 0 0 0 0 100.00%
tests/test_lib.py test_removing_file 4 0 0 0 0 100.00%
tests/test_lib.py (no function) 12 0 2 0 0 100.00%
Total   672 188 13 188 18 63.95%

No items found using the specified filter.