Coverage report: 81.86%

Files Functions Classes

coverage.py v7.6.10, created at 2025-01-10 16:33 +0100

File function statements missing excluded branches partial coverage
src/mkdocs_autorefs/debug.py _interpreter_name_version 8 8 0 4 0 0.00%
src/mkdocs_autorefs/debug.py get_version 4 4 0 0 0 0.00%
src/mkdocs_autorefs/debug.py get_debug_info 4 4 0 0 0 0.00%
src/mkdocs_autorefs/debug.py print_debug_info 9 9 0 4 0 0.00%
src/mkdocs_autorefs/debug.py (no function) 38 38 0 2 0 0.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.__init__ 5 0 0 0 0 100.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.register_anchor 6 0 0 4 1 90.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.register_url 1 0 0 0 0 100.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin._get_closest_url 13 0 0 6 0 100.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin._get_urls 4 0 0 0 0 100.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin._get_item_url 18 0 0 10 0 100.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.get_item_url 6 0 0 4 0 100.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.on_config 3 3 0 0 0 0.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.on_page_markdown 2 2 0 0 0 0.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.on_page_content 5 5 0 4 0 0.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.map_urls 3 3 0 2 0 0.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.on_post_page 8 8 0 4 0 0.00%
src/mkdocs_autorefs/plugin.py (no function) 37 2 5 0 0 94.59%
src/mkdocs_autorefs/references.py __getattr__ 4 2 0 2 1 50.00%
src/mkdocs_autorefs/references.py AutorefsHookInterface.Context.as_dict 1 1 0 0 0 0.00%
src/mkdocs_autorefs/references.py AutorefsHookInterface.expand_identifier 1 1 0 0 0 0.00%
src/mkdocs_autorefs/references.py AutorefsHookInterface.get_context 1 1 0 0 0 0.00%
src/mkdocs_autorefs/references.py AutorefsInlineProcessor.__init__ 1 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py AutorefsInlineProcessor.handleMatch 9 2 0 6 2 73.33%
src/mkdocs_autorefs/references.py AutorefsInlineProcessor._unstash 3 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py AutorefsInlineProcessor._unstash._repl 6 1 0 4 1 80.00%
src/mkdocs_autorefs/references.py AutorefsInlineProcessor._eval_id 21 0 0 10 1 96.77%
src/mkdocs_autorefs/references.py AutorefsInlineProcessor._make_tag 9 2 0 4 1 76.92%
src/mkdocs_autorefs/references.py relative_url 10 0 0 2 0 100.00%
src/mkdocs_autorefs/references.py _legacy_fix_ref 2 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py _legacy_fix_ref.inner 24 1 0 8 1 93.75%
src/mkdocs_autorefs/references.py _AutorefsAttrs.context 4 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py _AutorefsAttrs.remaining 1 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py _HTMLAttrsParser.__init__ 2 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py _HTMLAttrsParser.parse 3 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py _HTMLAttrsParser.handle_starttag 1 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py _find_url 6 0 0 2 0 100.00%
src/mkdocs_autorefs/references.py fix_ref 2 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py fix_ref.inner 31 0 0 12 0 100.00%
src/mkdocs_autorefs/references.py fix_refs 5 0 0 2 0 100.00%
src/mkdocs_autorefs/references.py AnchorScannerTreeProcessor.__init__ 2 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py AnchorScannerTreeProcessor.run 4 0 0 2 1 83.33%
src/mkdocs_autorefs/references.py AnchorScannerTreeProcessor._scan_anchors 14 1 0 14 2 89.29%
src/mkdocs_autorefs/references.py _PendingAnchors.__init__ 3 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py _PendingAnchors.append 1 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py _PendingAnchors.flush 3 0 0 2 0 100.00%
src/mkdocs_autorefs/references.py _log_enabling_markdown_anchors 1 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py AutorefsExtension.__init__ 2 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py AutorefsExtension.extendMarkdown 4 0 0 2 0 100.00%
src/mkdocs_autorefs/references.py (no function) 82 2 6 0 0 97.56%
tests/conftest.py (no function) 0 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 7 0 0 0 0 100.00%
tests/test_plugin.py test_use_closest_url 8 0 0 0 0 100.00%
tests/test_plugin.py (no function) 14 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 6 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_custom_optional_hover_reference 1 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 (no function) 42 0 2 0 0 100.00%
Total   602 100 13 120 11 81.86%

No items found using the specified filter.