Coverage report: 70.97%

Files Functions Classes

coverage.py v7.6.2, created at 2024-10-12 18:59 +0200

File function statements missing excluded branches partial coverage
src/mkdocstrings/_cache.py download_url_with_gz 6 6 0 2 0 0.00%
src/mkdocstrings/_cache.py download_and_cache_url 24 24 0 6 0 0.00%
src/mkdocstrings/_cache.py (no function) 13 0 0 0 0 100.00%
src/mkdocstrings/debug.py _interpreter_name_version 8 8 0 4 0 0.00%
src/mkdocstrings/debug.py get_version 4 4 0 0 0 0.00%
src/mkdocstrings/debug.py get_debug_info 4 4 0 0 0 0.00%
src/mkdocstrings/debug.py print_debug_info 9 9 0 4 0 0.00%
src/mkdocstrings/debug.py (no function) 38 38 0 2 0 0.00%
src/mkdocstrings/extension.py AutoDocProcessor.__init__ 6 0 0 0 0 100.00%
src/mkdocstrings/extension.py AutoDocProcessor.test 1 0 0 0 0 100.00%
src/mkdocstrings/extension.py AutoDocProcessor.run 35 13 0 20 4 54.55%
src/mkdocstrings/extension.py AutoDocProcessor._process_block 28 8 0 4 1 71.88%
src/mkdocstrings/extension.py _HeadingsPostProcessor.run 1 0 0 0 0 100.00%
src/mkdocstrings/extension.py _HeadingsPostProcessor._remove_duplicated_headings 11 0 0 8 0 100.00%
src/mkdocstrings/extension.py _TocLabelsTreeProcessor.run 1 0 0 0 0 100.00%
src/mkdocstrings/extension.py _TocLabelsTreeProcessor._override_toc_labels 4 1 0 4 1 75.00%
src/mkdocstrings/extension.py MkdocstringsExtension.__init__ 4 0 0 0 0 100.00%
src/mkdocstrings/extension.py MkdocstringsExtension.extendMarkdown 3 0 0 0 0 100.00%
src/mkdocstrings/extension.py (no function) 29 0 5 0 0 100.00%
src/mkdocstrings/handlers/__init__.py (no function) 0 0 0 0 0 100.00%
src/mkdocstrings/handlers/base.py do_any 3 3 0 2 0 0.00%
src/mkdocstrings/handlers/base.py BaseHandler.__init__ 22 3 0 12 5 76.47%
src/mkdocstrings/handlers/base.py BaseHandler.load_inventory 1 1 0 0 0 0.00%
src/mkdocstrings/handlers/base.py BaseHandler.collect 1 1 0 0 0 0.00%
src/mkdocstrings/handlers/base.py BaseHandler.render 1 1 0 0 0 0.00%
src/mkdocstrings/handlers/base.py BaseHandler.teardown 0 0 0 0 0 100.00%
src/mkdocstrings/handlers/base.py BaseHandler.get_templates_dir 10 3 0 4 2 64.29%
src/mkdocstrings/handlers/base.py BaseHandler.get_extended_templates_dirs 2 0 0 0 0 100.00%
src/mkdocstrings/handlers/base.py BaseHandler.get_anchors 1 1 0 0 0 0.00%
src/mkdocstrings/handlers/base.py BaseHandler.do_convert_markdown 13 0 0 2 1 93.33%
src/mkdocstrings/handlers/base.py BaseHandler.do_heading 20 3 0 10 4 76.67%
src/mkdocstrings/handlers/base.py BaseHandler.get_headings 3 0 0 0 0 100.00%
src/mkdocstrings/handlers/base.py BaseHandler.update_env 4 0 0 0 0 100.00%
src/mkdocstrings/handlers/base.py BaseHandler._update_env 5 1 0 2 1 71.43%
src/mkdocstrings/handlers/base.py Handlers.__init__ 3 0 0 0 0 100.00%
src/mkdocstrings/handlers/base.py Handlers.get_anchors 9 9 0 4 0 0.00%
src/mkdocstrings/handlers/base.py Handlers.get_handler_name 4 0 0 2 0 100.00%
src/mkdocstrings/handlers/base.py Handlers.get_handler_config 4 1 0 2 1 66.67%
src/mkdocstrings/handlers/base.py Handlers.get_handler 7 0 0 4 0 100.00%
src/mkdocstrings/handlers/base.py Handlers.seen_handlers 1 0 0 0 0 100.00%
src/mkdocstrings/handlers/base.py Handlers.teardown 3 0 0 2 0 100.00%
src/mkdocstrings/handlers/base.py (no function) 57 0 3 2 0 100.00%
src/mkdocstrings/handlers/rendering.py Highlighter.__init__ 13 0 0 6 0 100.00%
src/mkdocstrings/handlers/rendering.py Highlighter.highlight 15 0 0 8 1 95.65%
src/mkdocstrings/handlers/rendering.py IdPrependingTreeprocessor.__init__ 2 0 0 0 0 100.00%
src/mkdocstrings/handlers/rendering.py IdPrependingTreeprocessor.run 2 0 0 2 1 75.00%
src/mkdocstrings/handlers/rendering.py IdPrependingTreeprocessor._prefix_ids 19 4 0 14 2 75.76%
src/mkdocstrings/handlers/rendering.py HeadingShiftingTreeprocessor.__init__ 2 0 0 0 0 100.00%
src/mkdocstrings/handlers/rendering.py HeadingShiftingTreeprocessor.run 8 0 0 6 0 100.00%
src/mkdocstrings/handlers/rendering.py _HeadingReportingTreeprocessor.__init__ 2 0 0 0 0 100.00%
src/mkdocstrings/handlers/rendering.py _HeadingReportingTreeprocessor.run 7 0 0 6 0 100.00%
src/mkdocstrings/handlers/rendering.py ParagraphStrippingTreeprocessor.run 4 2 0 2 1 50.00%
src/mkdocstrings/handlers/rendering.py MkdocstringsInnerExtension.__init__ 2 0 0 0 0 100.00%
src/mkdocstrings/handlers/rendering.py MkdocstringsInnerExtension.extendMarkdown 5 0 0 0 0 100.00%
src/mkdocstrings/handlers/rendering.py (no function) 42 0 3 0 0 100.00%
src/mkdocstrings/inventory.py InventoryItem.__init__ 6 6 0 0 0 0.00%
src/mkdocstrings/inventory.py InventoryItem.format_sphinx 7 7 0 4 0 0.00%
src/mkdocstrings/inventory.py InventoryItem.parse_sphinx 9 9 0 6 0 0.00%
src/mkdocstrings/inventory.py Inventory.__init__ 6 1 0 2 1 75.00%
src/mkdocstrings/inventory.py Inventory.register 1 1 0 0 0 0.00%
src/mkdocstrings/inventory.py Inventory.format_sphinx 3 3 0 0 0 0.00%
src/mkdocstrings/inventory.py Inventory.parse_sphinx 7 7 0 4 0 0.00%
src/mkdocstrings/inventory.py (no function) 17 0 2 0 0 100.00%
src/mkdocstrings/loggers.py LoggerAdapter.__init__ 3 0 0 0 0 100.00%
src/mkdocstrings/loggers.py LoggerAdapter.process 1 0 0 0 0 100.00%
src/mkdocstrings/loggers.py LoggerAdapter.log 5 0 0 4 0 100.00%
src/mkdocstrings/loggers.py TemplateLogger.__init__ 5 0 0 0 0 100.00%
src/mkdocstrings/loggers.py get_template_logger_function 3 0 0 0 0 100.00%
src/mkdocstrings/loggers.py get_template_logger_function.wrapper 3 0 0 0 0 100.00%
src/mkdocstrings/loggers.py get_template_path 10 1 0 4 1 85.71%
src/mkdocstrings/loggers.py get_logger 2 0 0 0 0 100.00%
src/mkdocstrings/loggers.py get_template_logger 2 0 0 0 0 100.00%
src/mkdocstrings/loggers.py (no function) 24 4 3 0 0 83.33%
src/mkdocstrings/plugin.py list_to_tuple 2 0 0 0 0 100.00%
src/mkdocstrings/plugin.py list_to_tuple.wrapper 4 4 0 2 0 0.00%
src/mkdocstrings/plugin.py MkdocstringsPlugin.__init__ 2 0 0 0 0 100.00%
src/mkdocstrings/plugin.py MkdocstringsPlugin.handlers 3 1 0 2 1 60.00%
src/mkdocstrings/plugin.py MkdocstringsPlugin.on_config 35 11 0 12 2 59.57%
src/mkdocstrings/plugin.py MkdocstringsPlugin.inventory_enabled 4 4 0 2 0 0.00%
src/mkdocstrings/plugin.py MkdocstringsPlugin.plugin_enabled 1 0 0 0 0 100.00%
src/mkdocstrings/plugin.py MkdocstringsPlugin.on_env 23 21 0 12 1 8.57%
src/mkdocstrings/plugin.py MkdocstringsPlugin.on_post_build 7 1 0 6 2 76.92%
src/mkdocstrings/plugin.py MkdocstringsPlugin.get_handler 1 1 0 0 0 0.00%
src/mkdocstrings/plugin.py MkdocstringsPlugin._load_inventory 5 5 0 0 0 0.00%
src/mkdocstrings/plugin.py (no function) 55 0 3 2 0 100.00%
tests/conftest.py fixture_mkdocs_conf 13 0 0 2 0 100.00%
tests/conftest.py fixture_plugin 1 0 0 0 0 100.00%
tests/conftest.py fixture_ext_markdown 1 0 0 0 0 100.00%
tests/conftest.py (no function) 12 0 5 0 0 100.00%
tests/test_extension.py test_multiple_footnotes 4 0 0 0 0 100.00%
tests/test_extension.py test_markdown_heading_level 4 0 0 0 0 100.00%
tests/test_extension.py test_keeps_preceding_text 4 0 0 0 0 100.00%
tests/test_extension.py test_reference_inside_autodoc 2 0 0 0 0 100.00%
tests/test_extension.py test_quote_inside_annotation 3 0 0 0 0 100.00%
tests/test_extension.py test_html_inside_heading 3 0 0 0 0 100.00%
tests/test_extension.py test_no_double_toc 4 0 0 0 0 100.00%
tests/test_extension.py test_use_custom_handler 2 0 0 0 0 100.00%
tests/test_extension.py test_dont_register_every_identifier_as_anchor 8 0 0 2 0 100.00%
tests/test_extension.py test_use_options_yaml_key 2 0 0 0 0 100.00%
tests/test_extension.py test_use_yaml_options_after_blank_line 1 0 0 0 0 100.00%
tests/test_extension.py test_removing_duplicated_headings 5 0 0 0 0 100.00%
tests/test_extension.py _assert_contains_in_order 4 0 0 2 0 100.00%
tests/test_extension.py test_backup_of_anchors 7 0 0 0 0 100.00%
tests/test_extension.py (no function) 25 0 3 0 0 100.00%
tests/test_handlers.py test_highlighter_without_pygments 5 0 0 0 0 100.00%
tests/test_handlers.py test_highlighter_basic 5 0 0 0 0 100.00%
tests/test_handlers.py test_extended_templates 18 0 0 0 0 100.00%
tests/test_handlers.py (no function) 12 0 3 0 0 100.00%
tests/test_inventory.py test_sphinx_load_inventory_file 6 6 0 2 0 0.00%
tests/test_inventory.py test_sphinx_load_mkdocstrings_inventory_file 12 12 0 2 0 0.00%
tests/test_inventory.py test_load_inventory 1 1 0 0 0 0.00%
tests/test_inventory.py (no function) 15 5 2 0 0 66.67%
tests/test_loggers.py test_logger 11 0 0 4 0 100.00%
tests/test_loggers.py test_template_logger 12 0 0 4 0 100.00%
tests/test_loggers.py (no function) 7 0 0 0 0 100.00%
tests/test_plugin.py test_disabling_plugin 14 0 0 0 0 100.00%
tests/test_plugin.py test_plugin_default_config 6 0 0 0 0 100.00%
tests/test_plugin.py test_plugin_config_custom_templates 9 0 0 0 0 100.00%
tests/test_plugin.py (no function) 8 0 2 0 0 100.00%
Total   1028 259 34 226 33 70.97%

No items found using the specified filter.