test_a_cmake_file_that_only_calls_commands_defines_nothing¶
Tests › tests/test_cmakeast.py
What this test is for
Why it exists
The common case — most `CMakeLists.txt` files define no function at all. The file is still indexed and still searchable; it simply contributes no symbols.
Given
out = _harvest(b"project(demo C)\nadd_library(mylib src/a.c)\n")
When
- —
Then
- ✓ out equals {"functions": [], "classes": []}
tests/test_cmakeast.py:128 · its file's page
What it checks (1)
assert out == {"functions": [], "classes": []}observes_harvestviaout
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_cmake_file_that_only_calls_commands_defines_nothing→_harvestWhat 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