test_configured_macros_carry_their_provenance_and_a_route

Tests › tests/test_kconfig.py

passed Passed in the packaged run.

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

  1. header = "include/mbedtls/mbedtls_config.h"
→

When

  1. stated = macros_meaning('"MBEDTLS_THREADING_C"', "declared", header)
  2. mixed = macros_meaning('"A" "B"', "declared+config_header", header)
  3. from_repo = macros_meaning('"A"', "config_header", header)
2 more
  1. unknown = macros_meaning('"A"', "declared", "")
  2. macros_meaning("", "", "")
→

Then

  1. ✓ stated contains "STATED BY THE OPERATOR"
  2. ✓ stated contains "may well be OFF, or commented out"
  3. ✓ stated contains header
  4. ✓ mixed contains "COMBINES"
  5. ✓ mixed does not contain "STATED BY THE OPERATOR"
  6. ✓ mixed contains header
  7. ✓ from_repo contains "does describe what the repository builds by default"
  8. ✓ from_repo does not contain "not a statement about what the repository"
  9. ✓ unknown contains "No config header is recorded"
  10. ✓ unknown contains "treat the default as unknown"
  11. ✓ macros_meaning("", "", "") equals ""

tests/test_kconfig.py:1007 · its file's page

What it checks (11)

  1. assert "STATED BY THE OPERATOR" in stated observes macros_meaning via stated
  2. assert "may well be OFF, or commented out" in stated observes macros_meaning via stated
  3. assert header in stated, "the ROUTE is the point — a disclaimer alone leaves the agent hunting" observes macros_meaning via stated
  4. assert "COMBINES" in mixed observes macros_meaning via mixed
  5. assert "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" ) observes macros_meaning via mixed
  6. assert header in mixed observes macros_meaning via mixed
  7. assert "does describe what the repository builds by default" in from_repo observes macros_meaning via from_repo
  8. assert "not a statement about what the repository" not in from_repo, ( "the lead must not contradict the sentence after it" ) observes macros_meaning via from_repo
  9. assert "No config header is recorded" in unknown observes macros_meaning via unknown
  10. assert "treat the default as unknown" in unknown observes macros_meaning via unknown
  11. assert macros_meaning("", "", "") == "" observes macros_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

test_configured_macros_carry_their_provenance_and_a_route→macros_meaning

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_configured_macros_carry_their_provenance_and_a_route · 11 checksmacros_meaningREQ-DDB-QUERY-006 · measured

Requirements it verifies (3)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-005catalogunknown
REQ-DDB-PIPE-007catalogunknown
REQ-DDB-PIPE-014catalogunknown
Also reaches 1 requirement

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