test_the_declared_parameters_are_the_signature¶
Tests › tests/test_cmakeast.py
What this test is for
Why it exists
Unlike shell, CMake declares named parameters, so withholding them would be a gap in the harvest rather than a fact about the language.
Given
out = _harvest(_LISTS)args = {fn["name"]: fn["args"] for fn in out["functions"]}
When
- —
Then
- ✓ args["add_firmware"] equals "(NAME SOURCES)"
- ✓ args["strict_warnings"] equals "(TARGET)"
tests/test_cmakeast.py:85 · its file's page
What it checks (2)
assert args["add_firmware"] == "(NAME SOURCES)"not attributedassert args["strict_warnings"] == "(TARGET)"not attributed
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_the_declared_parameters_are_the_signature→_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