REQ-DDB-GUARD-008: Changed function detection from git diff

← Requirements

What it requires

  1. Functions whose body lines overlap with git diff changed lines are reported as changed
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Guard: the pre-commit gate2

See it on the map

How it is met

implemented bytestsresult_extract_changed_functionscollect_changed_functionstest_a_range_with_no_files_reads_the_files_the_range_changedpassedtest_a_submodule_in_the_range_is_an_unmapped_file_never_openedpassedtest_finds_changed_functionpassedtest_full_pipelinepassedtest_no_change_no_resultpassedtest_unknown_extension_skippedpassed

Show on the map

Implemented by

Tests (6)

Linked directly

5 tests: 5 passed

5 passed
testresultlinked byimplementers exercisedcalls away
test_finds_changed_functionpassedmeasured2 of 2: _extract_changed_functions, collect_changed_functions1
test_unknown_extension_skippedpassedmeasured2 of 2: _extract_changed_functions, collect_changed_functions1
test_no_change_no_resultpassedmeasured1 of 2: collect_changed_functions1
test_a_range_with_no_files_reads_the_files_the_range_changedpassedmeasured1 of 2: _extract_changed_functions4
test_full_pipelinepassedmeasured1 of 2: _extract_changed_functions4
Reached through calls

1 test: 1 passed

1 passed
testresultlinked byimplementers exercisedcalls away
test_a_submodule_in_the_range_is_an_unmapped_file_never_openedpassedinferred1 of 2: _extract_changed_functions2

Flows through it