Coverage report: 83.36%

Files Functions Classes

coverage.py v7.6.12, created at 2025-02-24 16:56 +0100

File function statements missing excluded branches partial coverage
src/mkdocs_autorefs/_internal/__init__.py (no function) 0 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/backlinks.py BacklinksTreeProcessor.__init__ 3 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/backlinks.py BacklinksTreeProcessor.run 3 0 0 2 1 80.00%
src/mkdocs_autorefs/_internal/backlinks.py BacklinksTreeProcessor._enhance_autorefs 12 0 0 14 3 88.46%
src/mkdocs_autorefs/_internal/backlinks.py (no function) 30 2 4 0 0 93.33%
src/mkdocs_autorefs/_internal/debug.py _interpreter_name_version 8 8 0 4 0 0.00%
src/mkdocs_autorefs/_internal/debug.py _get_version 4 4 0 0 0 0.00%
src/mkdocs_autorefs/_internal/debug.py _get_debug_info 4 4 0 0 0 0.00%
src/mkdocs_autorefs/_internal/debug.py _print_debug_info 9 9 0 4 0 0.00%
src/mkdocs_autorefs/_internal/debug.py (no function) 38 38 0 2 0 0.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.__init__ 11 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.on_config 14 0 0 8 0 100.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.on_page_markdown 3 3 0 0 0 0.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.on_page_content 6 6 0 4 0 0.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.on_env 11 11 0 8 0 0.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.map_urls 8 8 0 4 0 0.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin._record_backlink 2 0 0 2 0 100.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.get_backlinks 7 0 0 6 0 100.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin._crumbs 10 4 0 4 1 50.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.register_anchor 15 4 0 10 2 76.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.register_url 1 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin._get_closest_url 13 0 0 6 0 100.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin._get_urls 4 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin._get_item_url 18 0 0 10 0 100.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.get_item_url 7 0 0 4 0 100.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.get_fallback_anchor 1 1 0 0 0 0.00%
src/mkdocs_autorefs/_internal/plugin.py AutorefsPlugin.get_fallback_anchor 3 3 0 2 0 0.00%
src/mkdocs_autorefs/_internal/plugin.py (no function) 57 2 7 0 0 96.49%
src/mkdocs_autorefs/_internal/references.py AutorefsHookInterface.Context.as_dict 1 1 0 0 0 0.00%
src/mkdocs_autorefs/_internal/references.py AutorefsHookInterface.expand_identifier 1 1 0 0 0 0.00%
src/mkdocs_autorefs/_internal/references.py AutorefsHookInterface.get_context 1 1 0 0 0 0.00%
src/mkdocs_autorefs/_internal/references.py AutorefsInlineProcessor.__init__ 1 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py AutorefsInlineProcessor.handleMatch 9 2 0 6 2 73.33%
src/mkdocs_autorefs/_internal/references.py AutorefsInlineProcessor._unstash 3 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py AutorefsInlineProcessor._unstash._repl 6 1 0 4 1 80.00%
src/mkdocs_autorefs/_internal/references.py AutorefsInlineProcessor._eval_id 21 0 0 10 1 96.77%
src/mkdocs_autorefs/_internal/references.py AutorefsInlineProcessor._make_tag 9 2 0 4 1 76.92%
src/mkdocs_autorefs/_internal/references.py AnchorScannerTreeProcessor.__init__ 2 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py AnchorScannerTreeProcessor.run 4 0 0 2 1 83.33%
src/mkdocs_autorefs/_internal/references.py AnchorScannerTreeProcessor._scan_anchors 15 1 0 14 2 89.66%
src/mkdocs_autorefs/_internal/references.py AutorefsExtension.__init__ 3 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py AutorefsExtension.extendMarkdown 8 0 0 6 1 92.86%
src/mkdocs_autorefs/_internal/references.py _PendingAnchors.__init__ 2 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _PendingAnchors.append 1 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _PendingAnchors.flush 4 0 0 4 1 87.50%
src/mkdocs_autorefs/_internal/references.py _AutorefsAttrs.context 4 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _AutorefsAttrs.remaining 1 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _HTMLAttrsParser.__init__ 2 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _HTMLAttrsParser.parse 4 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _HTMLAttrsParser.handle_starttag 1 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _HTMLTagStripper.__init__ 2 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _HTMLTagStripper.strip 4 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _HTMLTagStripper.handle_data 1 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py relative_url 10 0 0 2 0 100.00%
src/mkdocs_autorefs/_internal/references.py fix_ref 2 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py fix_ref.inner 35 1 0 16 2 94.12%
src/mkdocs_autorefs/_internal/references.py fix_refs 5 0 0 2 0 100.00%
src/mkdocs_autorefs/_internal/references.py _find_url 6 0 0 2 0 100.00%
src/mkdocs_autorefs/_internal/references.py _tooltip 9 3 0 8 3 64.71%
src/mkdocs_autorefs/_internal/references.py _log_enabling_markdown_anchors 1 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _log_enabling_backlinks 1 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py __getattr__ 4 2 0 2 1 50.00%
src/mkdocs_autorefs/_internal/references.py _legacy_fix_ref 2 0 0 0 0 100.00%
src/mkdocs_autorefs/_internal/references.py _legacy_fix_ref.inner 24 1 0 8 1 93.75%
src/mkdocs_autorefs/_internal/references.py (no function) 100 2 6 0 0 98.00%
src/mkdocs_autorefs/plugin.py __getattr__ 2 2 0 0 0 0.00%
src/mkdocs_autorefs/plugin.py (no function) 4 4 0 0 0 0.00%
src/mkdocs_autorefs/references.py __getattr__ 2 2 0 0 0 0.00%
src/mkdocs_autorefs/references.py (no function) 4 4 0 0 0 0.00%
tests/conftest.py (no function) 0 0 0 0 0 100.00%
tests/helpers.py create_page 1 0 0 0 0 100.00%
tests/helpers.py (no function) 4 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 11 1 0 6 2 82.35%
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_backlinks.py test_record_backlinks 6 0 0 0 0 100.00%
tests/test_backlinks.py test_get_backlinks 5 0 0 0 0 100.00%
tests/test_backlinks.py test_backlinks_treeprocessor 10 0 0 0 0 100.00%
tests/test_backlinks.py (no function) 9 0 0 0 0 100.00%
tests/test_plugin.py test_url_registration 7 0 0 0 0 100.00%
tests/test_plugin.py test_url_registration_with_from_url 7 0 0 0 0 100.00%
tests/test_plugin.py test_url_registration_with_fallback 10 0 0 0 0 100.00%
tests/test_plugin.py test_dont_make_relative_urls_relative_again 4 0 0 2 0 100.00%
tests/test_plugin.py test_find_closest_url 1 0 0 0 0 100.00%
tests/test_plugin.py test_register_secondary_url 3 0 0 0 0 100.00%
tests/test_plugin.py test_warn_multiple_urls 8 0 0 0 0 100.00%
tests/test_plugin.py test_use_closest_url 9 0 0 0 0 100.00%
tests/test_plugin.py test_on_config_hook 3 0 0 0 0 100.00%
tests/test_plugin.py test_auto_link_titles_external 7 0 0 0 0 100.00%
tests/test_plugin.py test_auto_link_titles 13 0 0 0 0 100.00%
tests/test_plugin.py test_explicit_link_titles 5 0 0 0 0 100.00%
tests/test_plugin.py test_auto_strip_title_tags_false 7 0 0 0 0 100.00%
tests/test_plugin.py test_auto_strip_title_tags_true 13 0 0 0 0 100.00%
tests/test_plugin.py test_explicit_strip_tags 5 0 0 0 0 100.00%
tests/test_plugin.py (no function) 28 0 0 0 0 100.00%
tests/test_references.py test_relative_url 1 0 0 0 0 100.00%
tests/test_references.py run_references_test 8 0 0 0 0 100.00%
tests/test_references.py run_references_test.url_mapper 1 0 0 0 0 100.00%
tests/test_references.py test_reference_implicit 1 0 0 0 0 100.00%
tests/test_references.py test_reference_explicit_with_markdown_text 1 0 0 0 0 100.00%
tests/test_references.py test_reference_implicit_with_code 1 0 0 0 0 100.00%
tests/test_references.py test_reference_implicit_with_code_inlinehilite_plain 1 0 0 0 0 100.00%
tests/test_references.py test_reference_implicit_with_code_inlinehilite_python 1 0 0 0 0 100.00%
tests/test_references.py test_reference_with_punctuation 1 0 0 0 0 100.00%
tests/test_references.py test_reference_to_relative_path 1 0 0 0 0 100.00%
tests/test_references.py test_multiline_links 1 0 0 0 0 100.00%
tests/test_references.py test_no_reference_with_space 1 0 0 0 0 100.00%
tests/test_references.py test_no_reference_inside_markdown 1 0 0 0 0 100.00%
tests/test_references.py test_missing_reference 1 0 0 0 0 100.00%
tests/test_references.py test_missing_reference_with_markdown_text 1 0 0 0 0 100.00%
tests/test_references.py test_missing_reference_with_markdown_id 1 0 0 0 0 100.00%
tests/test_references.py test_missing_reference_with_markdown_implicit 1 0 0 0 0 100.00%
tests/test_references.py test_reference_with_markup 2 0 0 0 0 100.00%
tests/test_references.py test_legacy_custom_required_reference 2 0 0 0 0 100.00%
tests/test_references.py test_custom_required_reference 1 0 0 0 0 100.00%
tests/test_references.py test_legacy_custom_optional_reference 2 0 0 0 0 100.00%
tests/test_references.py test_custom_optional_reference 1 0 0 0 0 100.00%
tests/test_references.py test_legacy_custom_optional_hover_reference 2 0 0 0 0 100.00%
tests/test_references.py test_legacy_external_references 2 0 0 0 0 100.00%
tests/test_references.py test_external_references 1 0 0 0 0 100.00%
tests/test_references.py test_register_markdown_anchors 5 0 0 0 0 100.00%
tests/test_references.py test_register_markdown_anchors_with_admonition 5 0 0 0 0 100.00%
tests/test_references.py test_legacy_keep_data_attributes 2 0 0 0 0 100.00%
tests/test_references.py test_keep_data_attributes 1 0 0 0 0 100.00%
tests/test_references.py test_mark_identifiers_as_exact 7 0 0 2 0 100.00%
tests/test_references.py test_slugified_identifier_fallback 3 0 0 0 0 100.00%
tests/test_references.py test_no_fallback_for_exact_identifiers 2 0 0 0 0 100.00%
tests/test_references.py test_no_fallback_for_provided_identifiers 1 0 0 0 0 100.00%
tests/test_references.py test_title_use_identifier 1 0 0 0 0 100.00%
tests/test_references.py test_title_append_identifier 1 0 0 0 0 100.00%
tests/test_references.py (no function) 43 0 2 0 0 100.00%
Total   990 142 21 218 29 83.36%

No items found using the specified filter.