test_the_declared_parameters_are_the_signature

Tests › tests/test_cmakeast.py

passed Passed in the packaged run.

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

  1. out = _harvest(_LISTS)
  2. args = {fn["name"]: fn["args"] for fn in out["functions"]}
→

When

  1. —
→

Then

  1. ✓ args["add_firmware"] equals "(NAME SOURCES)"
  2. ✓ args["strict_warnings"] equals "(TARGET)"

tests/test_cmakeast.py:85 · its file's page

What it checks (2)

  1. assert args["add_firmware"] == "(NAME SOURCES)" not attributed
  2. assert 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→_harvest

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.

Also reaches 1 requirement

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