test_a_file_with_no_rules_harvests_nothing¶
Tests › tests/test_cmake_generation.py
What this test is for
Why it exists
An empty payload rather than a `generated: []` row per file, for the reason `_ScriptSymbolHarvester` gives about partitions: a row per file recording that a C file generates nothing is 40,000 rows of nothing on a large target.
Given
- —
When
harvest_generation(_tree(NO_COMMANDS), NO_COMMANDS)
Then
- ✓ harvest_generation(_tree(NO_COMMANDS), NO_COMMANDS) equals {}
tests/test_cmake_generation.py:167 · its file's page
What it checks (1)
assert harvest_generation(_tree(NO_COMMANDS), NO_COMMANDS) == {}observesharvest_generation
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-012 measured