test_a_quoted_set_value_expands_without_its_quotes

Tests › tests/test_cmake_resolve.py

passed Passed in the packaged run.

What this test is for

Why it exists

FOUND MEASURING mbedtls: `set(x "${CMAKE_CURRENT_SOURCE_DIR}/gen.sh")` kept its quotes.

Given

  1. tree = _tree(b'set(gen "${CMAKE_CURRENT_SOURCE_DIR}/gen.sh")\nset(empty "")\n')
→

When

  1. variables = _variables(tree.root_node)
  2. resolve_argument('"${gen}"', "programs/test", variables, True)
  3. resolve_argument("${empty}", "programs/test", variables, True)
→

Then

  1. ✓ variables["gen"] equals "${CMAKE_CURRENT_SOURCE_DIR}/gen.sh"
  2. ✓ resolve_argument('"${gen}"', "programs/test", variables, True) equals "programs/test/gen.sh"
  3. ✓ resolve_argument("${empty}", "programs/test", variables, True) equals ""

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

What it checks (3)

  1. assert variables["gen"] == "${CMAKE_CURRENT_SOURCE_DIR}/gen.sh" observes _variables via variables
  2. assert resolve_argument('"${gen}"', "programs/test", variables, True) == "programs/test/gen.sh" observes resolve_argument
  3. assert resolve_argument("${empty}", "programs/test", variables, True) == "" 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_quoted_set_value_expands_without_its_quotes→_variables→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_quoted_set_value_expands_without_its_quotes · 3 checksresolve_argumentREQ-DDB-PIPE-012 · measured
Also reaches 1 requirement

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