Coverage for 68831595f9b8296fb676d37640160cd3c16791e6: 100%

Files Functions Classes

coverage.py v7.6.1, created at 2026-11-30 00:03 +0000

File function statements missing excluded coverage
src/markdown_include_variants/__init__.py (no function) 4 0 0 100%
src/markdown_include_variants/_main.py Variant.title 7 0 0 100%
src/markdown_include_variants/_main.py parse_variant_name 9 0 0 100%
src/markdown_include_variants/_main.py calculate_variants 31 0 0 100%
src/markdown_include_variants/_main.py wrap_tab 3 0 0 100%
src/markdown_include_variants/_main.py parse_lines_index 9 0 0 100%
src/markdown_include_variants/_main.py IncludeInfo.computed_hl_lines 1 0 0 100%
src/markdown_include_variants/_main.py calculate_includes 14 0 0 100%
src/markdown_include_variants/_main.py generate_hl_string 6 0 0 100%
src/markdown_include_variants/_main.py IncludeVariantsPreprocessor.run 79 0 0 100%
src/markdown_include_variants/_main.py IncludeVariantsExtension.extendMarkdown 1 0 0 100%
src/markdown_include_variants/_main.py makeExtension 0 0 1 100%
src/markdown_include_variants/_main.py (no function) 33 0 3 100%
src/markdown_include_variants/_version.py (no function) 1 0 0 100%
tests/test_all_variants.py test_all_variants_plain 3 0 0 100%
tests/test_all_variants.py test_all_variants_ln_hl 3 0 0 100%
tests/test_all_variants.py test_all_variants_ln_hl_title 3 0 0 100%
tests/test_all_variants.py test_all_variants_ln_hl_include 3 0 0 100%
tests/test_all_variants.py test_all_variants_ln_hl_title_include 3 0 0 100%
tests/test_all_variants.py (no function) 12 0 0 100%
tests/test_all_variants_folder.py test_all_variants_plain 3 0 0 100%
tests/test_all_variants_folder.py test_all_variants_ln_hl 3 0 0 100%
tests/test_all_variants_folder.py test_all_variants_ln_hl_include 3 0 0 100%
tests/test_all_variants_folder.py (no function) 10 0 0 100%
tests/test_another_preferred_variant.py test_all_variants_plain 3 0 0 100%
tests/test_another_preferred_variant.py (no function) 5 0 0 100%
tests/test_no_py39.py test_all_variants_plain 3 0 0 100%
tests/test_no_py39.py (no function) 5 0 0 100%
tests/test_only_preview.py test_only_preview 3 0 0 100%
tests/test_only_preview.py (no function) 5 0 0 100%
tests/test_only_py310.py test_all_variants_plain 3 0 0 100%
tests/test_only_py310.py (no function) 5 0 0 100%
tests/test_only_py310_no_an_folder.py test_all_variants_plain 3 0 0 100%
tests/test_only_py310_no_an_folder.py (no function) 5 0 0 100%
tests/test_only_py_no_an.py test_all_variants_plain 3 0 0 100%
tests/test_only_py_no_an.py (no function) 5 0 0 100%
tests/test_prepare_release.py test_bump_version 1 0 0 100%
tests/test_prepare_release.py test_update_version_file 3 0 0 100%
tests/test_prepare_release.py test_update_version_file_requires_newer_version 3 0 0 100%
tests/test_prepare_release.py test_update_release_notes 3 0 0 100%
tests/test_prepare_release.py test_update_release_notes_rejects_existing_version 3 0 0 100%
tests/test_prepare_release.py test_get_release_notes_body_with_dated_heading 3 0 0 100%
tests/test_prepare_release.py test_get_release_notes_body_with_plain_heading 3 0 0 100%
tests/test_prepare_release.py test_get_release_notes_body_allows_non_version_h2_content 3 0 0 100%
tests/test_prepare_release.py test_get_release_notes_body_requires_version_section 3 0 0 100%
tests/test_prepare_release.py test_get_release_notes_body_requires_non_empty_section 3 0 0 100%
tests/test_prepare_release.py test_cli_updates_configured_files 10 0 0 100%
tests/test_prepare_release.py test_cli_accepts_env_vars 14 0 0 100%
tests/test_prepare_release.py test_cli_prints_current_version 6 0 0 100%
tests/test_prepare_release.py test_cli_prints_release_notes 8 0 0 100%
tests/test_prepare_release.py (no function) 33 0 0 100%
tests/test_simple_hl.py test_simple_hl 3 0 0 100%
tests/test_simple_hl.py test_simple_hl_include 3 0 0 100%
tests/test_simple_hl.py test_simple_hl_one 3 0 0 100%
tests/test_simple_hl.py test_simple_hl_one_middle 3 0 0 100%
tests/test_simple_hl.py test_simple_hl_one_block_middle_end 3 0 0 100%
tests/test_simple_hl.py (no function) 10 0 0 100%
tests/test_simple_ln.py test_simple_ln 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_include 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_one 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_one_include 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_one_below 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_one_last 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_block_below 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_block_last 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_first_middle 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_first_middle_last 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_middle_middle 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_first_block_middle_block 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_first_block_middle_block_last_block 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_first_block_middle_last_block 3 0 0 100%
tests/test_simple_ln.py test_simple_ln_first_middle_block_last 3 0 0 100%
tests/test_simple_ln.py (no function) 21 0 0 100%
tests/test_simple_ln_hl.py test_simple_ln_hl 3 0 0 100%
tests/test_simple_ln_hl.py test_simple_ln_hl_middle_block 3 0 0 100%
tests/test_simple_ln_hl.py test_simple_ln_hl_middle_block_end_block 3 0 0 100%
tests/test_simple_ln_hl.py test_simple_ln_hl_middle_block_middle_block_end_block 3 0 0 100%
tests/test_simple_ln_hl.py test_simple_ln_hl_middle_middle_block_end 3 0 0 100%
tests/test_simple_ln_hl.py test_simple_ln_hl_first_middle_end 3 0 0 100%
tests/test_simple_ln_hl.py test_simple_ln_hl_middle_block_end_block_hl_middle_block 3 0 0 100%
tests/test_simple_ln_hl.py test_simple_ln_hl_middle_block_end_block_hl_end_block 3 0 0 100%
tests/test_simple_ln_hl.py test_simple_ln_hl_middle_block_end_block_hl_end_block_include 3 0 0 100%
tests/test_simple_ln_hl.py (no function) 16 0 0 100%
tests/test_simple_no_configs.py test_simple 3 0 0 100%
tests/test_simple_no_configs.py test_simple_space 3 0 0 100%
tests/test_simple_no_configs.py test_simple_extra_space 3 0 0 100%
tests/test_simple_no_configs.py test_simple_include 3 0 0 100%
tests/test_simple_no_configs.py test_simple_no_directive 3 0 0 100%
tests/test_simple_no_configs.py test_simple_no_variants 3 0 0 100%
tests/test_simple_no_configs.py (no function) 12 0 0 100%
tests/test_simple_title.py test_simple_title 3 0 0 100%
tests/test_simple_title.py test_simple_include 3 0 0 100%
tests/test_simple_title.py (no function) 7 0 0 100%
tests/test_up_to_py39.py test_all_variants_plain 3 0 0 100%
tests/test_up_to_py39.py test_all_variants_ln_hl 3 0 0 100%
tests/test_up_to_py39.py (no function) 6 0 0 100%
tests/test_variant_discovery.py examples 3 0 0 100%
tests/test_variant_discovery.py examples.create 11 0 0 100%
tests/test_variant_discovery.py render 3 0 0 100%
tests/test_variant_discovery.py labels 1 0 0 100%
tests/test_variant_discovery.py code_blocks 1 0 0 100%
tests/test_variant_discovery.py test_single_unversioned_example 5 0 0 100%
tests/test_variant_discovery.py test_legacy_unversioned_annotated_pair 13 0 0 100%
tests/test_variant_discovery.py test_unversioned_non_annotated_pair 13 0 0 100%
tests/test_variant_discovery.py test_single_non_annotated_example_keeps_label 5 0 0 100%
tests/test_variant_discovery.py test_single_explicit_version_keeps_label 4 0 0 100%
tests/test_variant_discovery.py test_version_order_and_preferred_file 4 0 0 100%
tests/test_variant_discovery.py test_legacy_incomplete_annotated_version_pairs 4 0 0 100%
tests/test_variant_discovery.py test_legacy_bare_version_without_annotated_counterpart 5 0 0 100%
tests/test_variant_discovery.py test_non_annotated_versions_follow_recommended_versions 4 0 0 100%
tests/test_variant_discovery.py test_incomplete_non_annotated_version_pairs 4 0 0 100%
tests/test_variant_discovery.py test_mixed_annotation_conventions_are_rejected 5 0 0 100%
tests/test_variant_discovery.py test_mixed_annotation_conventions_across_versions_are_rejected 3 0 0 100%
tests/test_variant_discovery.py test_mixed_version_markers_are_rejected 5 0 0 100%
tests/test_variant_discovery.py test_mixed_version_markers_with_non_annotated_are_rejected 3 0 0 100%
tests/test_variant_discovery.py test_missing_preferred_file_does_not_select_an_alternative 5 0 0 100%
tests/test_variant_discovery.py test_unversioned_preview_highlights_and_filename_title 9 0 0 100%
tests/test_variant_discovery.py test_unversioned_preview_only 7 0 0 100%
tests/test_variant_discovery.py test_recommended_preview_with_non_annotated_alternative 11 0 0 100%
tests/test_variant_discovery.py test_unrelated_example_can_use_legacy_annotation_convention 6 0 0 100%
tests/test_variant_discovery.py test_unrelated_files_and_directories_are_not_variants 8 0 0 100%
tests/test_variant_discovery.py test_nested_directory_variants_with_absolute_path 12 0 0 100%
tests/test_variant_discovery.py (no function) 39 0 0 100%
Total   773 0 4 100%

No items found using the specified filter.