test_configured_macros_carry_their_provenance_and_a_route¶
Tests › tests/test_kconfig.py
What this test is for
Why it exists
THE PAYLOAD ARGUED FOR A FALSE ANSWER, which is worse than withholding a true one.
Verifies REQ-DDB-CONFIG-005 REQ-DDB-PIPE-007 REQ-DDB-PIPE-014
Given
header = "include/mbedtls/mbedtls_config.h"
When
stated = macros_meaning('"MBEDTLS_THREADING_C"', "declared", header)mixed = macros_meaning('"A" "B"', "declared+config_header", header)from_repo = macros_meaning('"A"', "config_header", header)
2 more
unknown = macros_meaning('"A"', "declared", "")macros_meaning("", "", "")
Then
- ✓ stated contains "STATED BY THE OPERATOR"
- ✓ stated contains "may well be OFF, or commented out"
- ✓ stated contains header
- ✓ mixed contains "COMBINES"
- ✓ mixed does not contain "STATED BY THE OPERATOR"
- ✓ mixed contains header
- ✓ from_repo contains "does describe what the repository builds by default"
- ✓ from_repo does not contain "not a statement about what the repository"
- ✓ unknown contains "No config header is recorded"
- ✓ unknown contains "treat the default as unknown"
- ✓ macros_meaning("", "", "") equals ""
tests/test_kconfig.py:1007 · its file's page
What it checks (11)
assert "STATED BY THE OPERATOR" in statedobservesmacros_meaningviastatedassert "may well be OFF, or commented out" in statedobservesmacros_meaningviastatedassert header in stated, "the ROUTE is the point — a disclaimer alone leaves the agent hunting"observesmacros_meaningviastatedassert "COMBINES" in mixedobservesmacros_meaningviamixedassert "STATED BY THE OPERATOR" not in mixed, ( "on mbedtls this list is 142/144 read from the repository — claiming the operator stated " "it inverts the disclosure the other way" )observesmacros_meaningviamixedassert header in mixedobservesmacros_meaningviamixedassert "does describe what the repository builds by default" in from_repoobservesmacros_meaningviafrom_repoassert "not a statement about what the repository" not in from_repo, ( "the lead must not contradict the sentence after it" )observesmacros_meaningviafrom_repoassert "No config header is recorded" in unknownobservesmacros_meaningviaunknownassert "treat the default as unknown" in unknownobservesmacros_meaningviaunknownassert macros_meaning("", "", "") == ""observesmacros_meaning
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.
Requirements it verifies (3)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CONFIG-005 | catalog | unknown |
| REQ-DDB-PIPE-007 | catalog | unknown |
| REQ-DDB-PIPE-014 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-006 measured