test_a_variable_set_in_the_file_expands

Tests › tests/test_cmake_resolve.py

passed Passed in the packaged run.

What this test is for

Why it exists

`set()` / `file(GLOB)` values, one level of nesting.

Given

  1. variables = {"hdrs": "${CMAKE_CURRENT_SOURCE_DIR}/../include/*.h", "GEN": "gen.pl"}
→

When

  1. resolve_argument("${hdrs}", "library", variables, True)
  2. resolve_argument("${CMAKE_CURRENT_SOURCE_DIR}/${GEN}", "scripts", variables, True)
→

Then

  1. ✓ resolve_argument("${hdrs}", "library", variables, True) equals "include/*.h"
  2. ✓ resolve_argument("${CMAKE_CURRENT_SOURCE_DIR}/${GEN}", "scripts", variables, True) equals "scripts/gen.pl"

tests/test_cmake_resolve.py:35 · its file's page

What it checks (2)

  1. assert resolve_argument("${hdrs}", "library", variables, True) == "include/*.h" observes resolve_argument
  2. assert ( resolve_argument("${CMAKE_CURRENT_SOURCE_DIR}/${GEN}", "scripts", variables, True) == "scripts/gen.pl" ) observes resolve_argument

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_variable_set_in_the_file_expands→resolve_argument

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_a_variable_set_in_the_file_expands · 2 checksresolve_argumentREQ-DDB-PIPE-012 · measured
Also reaches 1 requirement

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