REQ-DDB-GUARD-022: Requirement coverage analysis

← Requirements

What it requires

  1. Requirements categorized as covered, uncovered or orphan; documented functions carrying no requirement tag are reported, excluding internal helpers; reports in text, JSON and markdown; exit code 1 when gaps exist
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Guard: the pre-commit gate14

See it on the map

How it is met

implemented bytestsresult_collect_req_ids_collect_unmapped_functions_coverage_gate_exemptanalyze_coveragecollect_tagged_functionscoverage_gapscovered_viaexemptionformat_coverage_jsonformat_coverage_markdownformat_coverage_textrun_coveragetraceabilitytest_a_markdown_wiki_with_pinned_catalogues_has_the_product_trace_pagepassedtest_a_ratio_at_or_above_the_floor_passespassedtest_a_ratio_below_the_declared_floor_failspassedtest_a_requirement_implemented_by_a_dependency_at_its_pin_is_covered_via_itpassedtest_a_requirement_is_exempt_by_status_or_by_a_named_fieldpassedtest_a_requirement_owned_elsewhere_is_exempt_by_its_fieldpassedtest_an_exempt_status_is_listed_not_counted_as_a_gappassedtest_an_exempt_status_with_no_test_is_exempt_not_missingpassedtest_analyze_coverage_structurepassedtest_basicpassedtest_coverage_lists_an_exempt_requirement_with_its_reasonpassedtest_coverage_treats_a_declaration_and_its_definition_as_onepassedtest_default_subcommand_with_filespassedtest_emptypassedtest_exempt_functions_are_not_unmappedpassedtest_format_coverage_markdownpassedtest_json_formatpassedtest_markdown_formatpassedtest_measured_evidence_is_never_overridden_by_a_statuspassedtest_needs_json_contributes_requirementspassedtest_no_reqspassedtest_off_by_default_nothing_changespassedtest_precommit_mode_flags_a_stale_rust_functionpassedtest_precommit_with_impactpassedtest_text_formatpassedtest_the_counts_are_printed_and_tests_are_left_outpassedtest_the_pre_commit_hook_runs_the_coverage_gatepassedtest_the_reports_say_which_dependency_covered_itpassedtest_with_every_gap_exempt_the_gate_passes_and_still_names_thempassedtest_without_a_declaration_nothing_is_exemptpassedtest_without_exempt_status_nothing_is_exemptpassed

Show on the map

Implemented by

Tests (31)

Linked directly

30 tests: 30 passed

30 passed
testresultlinked byimplementers exercisedcalls away
test_the_pre_commit_hook_runs_the_coverage_gatepassedmeasured10 of 14—
test_a_ratio_at_or_above_the_floor_passespassedmeasured9 of 14—
test_a_ratio_below_the_declared_floor_failspassedmeasured9 of 14—
test_the_counts_are_printed_and_tests_are_left_outpassedmeasured9 of 14—
test_precommit_with_impactpassedmeasured8 of 14—
test_a_markdown_wiki_with_pinned_catalogues_has_the_product_trace_pagepassedmeasured1 of 14: exemption—
test_default_subcommand_with_filespassedmeasured1 of 14: _coverage_gate—
test_needs_json_contributes_requirementspassedmeasured1 of 14: exemption—
test_precommit_mode_flags_a_stale_rust_functionpassedmeasured1 of 14: _coverage_gate—
test_an_exempt_status_is_listed_not_counted_as_a_gappassedmeasured10 of 141
test_with_every_gap_exempt_the_gate_passes_and_still_names_thempassedmeasured10 of 141
test_a_requirement_implemented_by_a_dependency_at_its_pin_is_covered_via_itpassedmeasured8 of 141
test_off_by_default_nothing_changespassedmeasured7 of 141
test_without_exempt_status_nothing_is_exemptpassedmeasured7 of 141
test_analyze_coverage_structurepassedmeasured6 of 141
test_coverage_treats_a_declaration_and_its_definition_as_onepassedmeasured6 of 141
test_coverage_lists_an_exempt_requirement_with_its_reasonpassedmeasured2 of 14: _exempt, exemption1
test_the_reports_say_which_dependency_covered_itpassedmeasured2 of 14: format_coverage_markdown, format_coverage_text1
test_a_requirement_is_exempt_by_status_or_by_a_named_fieldpassedmeasured1 of 14: exemption1
test_basicpassedmeasured1 of 14: _collect_req_ids1
test_emptypassedmeasured1 of 14: _collect_req_ids1
test_exempt_functions_are_not_unmappedpassedmeasured1 of 14: _collect_unmapped_functions1
test_format_coverage_markdownpassedmeasured1 of 14: format_coverage_markdown1
test_json_formatpassedmeasured1 of 14: format_coverage_json1
test_markdown_formatpassedmeasured1 of 14: format_coverage_markdown1
test_no_reqspassedmeasured1 of 14: _collect_unmapped_functions1
test_text_formatpassedmeasured1 of 14: format_coverage_text1
test_a_requirement_owned_elsewhere_is_exempt_by_its_fieldpassedmeasured1 of 14: exemption2
test_an_exempt_status_with_no_test_is_exempt_not_missingpassedmeasured1 of 14: exemption2
test_without_a_declaration_nothing_is_exemptpassedmeasured1 of 14: exemption2
Reached through calls

1 test: 1 passed

1 passed
testresultlinked byimplementers exercisedcalls away
test_measured_evidence_is_never_overridden_by_a_statuspassedinferred1 of 14: exemption2

Flows through it