Coverage report: 83.85%

Files Functions Classes

coverage.py v7.6.1, created at 2024-09-01 20:28 +0200

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 4 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 8 0 0.00%
src/mkdocs_autorefs/plugin.py URL.is_relative_to 5 0 0 0 0 100.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.__init__ 4 0 0 0 0 100.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.register_anchor 5 0 0 4 1 88.89%
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 9 0 100.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin._get_item_url 18 1 0 12 3 86.67%
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 1 0 0 0 66.67%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.on_page_markdown 2 0 0 0 0 100.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.on_page_content 5 2 0 4 0 33.33%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.map_urls 3 1 0 2 2 40.00%
src/mkdocs_autorefs/plugin.py AutorefsPlugin.on_post_page 8 8 0 4 0 0.00%
src/mkdocs_autorefs/plugin.py (no function) 41 1 4 4 0 97.78%
src/mkdocs_autorefs/references.py __getattr__ 4 0 0 2 1 83.33%
src/mkdocs_autorefs/references.py AutorefsHookInterface.Context.as_dict 1 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py AutorefsHookInterface.expand_identifier 1 0 0 0 0 100.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 0 0 6 0 100.00%
src/mkdocs_autorefs/references.py AutorefsInlineProcessor.evalId 18 0 0 10 1 96.43%
src/mkdocs_autorefs/references.py AutorefsInlineProcessor._make_tag 7 0 0 2 1 88.89%
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 0 0 8 1 96.88%
src/mkdocs_autorefs/references.py _AutorefsAttrs.context 4 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py _AutorefsAttrs.remaining 1 0 0 2 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 fix_ref 2 0 0 0 0 100.00%
src/mkdocs_autorefs/references.py fix_ref.inner 26 0 0 10 0 100.00%
src/mkdocs_autorefs/references.py fix_refs 5 0 0 2 1 85.71%
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 0 0 14 1 96.43%
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) 79 1 4 12 0 98.90%
tests/conftest.py (no function) 0 0 0 0 0 100.00%
tests/test_plugin.py test_url_registration 7 0 0 2 0 100.00%
tests/test_plugin.py test_url_registration_with_from_url 7 0 0 2 0 100.00%
tests/test_plugin.py test_url_registration_with_fallback 10 0 0 14 1 95.83%
tests/test_plugin.py test_dont_make_relative_urls_relative_again 4 0 0 4 0 100.00%
tests/test_plugin.py test_find_closest_url 1 0 0 0 0 100.00%
tests/test_plugin.py (no function) 9 0 0 2 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 6 0 0 2 0 100.00%
tests/test_references.py test_custom_required_reference 5 0 0 0 0 100.00%
tests/test_references.py test_legacy_custom_optional_reference 6 0 0 2 0 100.00%
tests/test_references.py test_custom_optional_reference 5 0 0 0 0 100.00%
tests/test_references.py test_legacy_custom_optional_hover_reference 6 0 0 2 0 100.00%
tests/test_references.py test_custom_optional_hover_reference 5 0 0 0 0 100.00%
tests/test_references.py test_legacy_external_references 6 0 0 2 0 100.00%
tests/test_references.py test_external_references 5 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 5 0 0 2 0 100.00%
tests/test_references.py test_keep_data_attributes 4 0 0 0 0 100.00%
tests/test_references.py (no function) 37 0 0 2 0 100.00%
Total   574 79 8 175 14 83.85%

No items found using the specified filter.