test_a_file_with_no_rules_harvests_nothing

Tests › tests/test_cmake_generation.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. harvest_generation(_tree(NO_COMMANDS), NO_COMMANDS)
→

Then

  1. ✓ harvest_generation(_tree(NO_COMMANDS), NO_COMMANDS) equals {}

tests/test_cmake_generation.py:167 · its file's page

What it checks (1)

  1. assert harvest_generation(_tree(NO_COMMANDS), NO_COMMANDS) == {} observes harvest_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

test_a_file_with_no_rules_harvests_nothing→harvest_generation→_tree

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.

test_a_file_with_no_rules_harvests_nothing · 1 checksharvest_generationREQ-DDB-PIPE-012 · measured
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.