test_a_quoted_argument_resolves_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: `"./framework/x.py"` kept its quotes as part of the path.

Given

  1. —
→

When

  1. resolve_argument('"${CMAKE_CURRENT_SOURCE_DIR}/gen.py"', "tests", {}, True)
  2. resolve_argument('"${CMAKE_SOURCE_DIR}/./x.py"', "tests", {}, True)
→

Then

  1. ✓ resolve_argument('"${CMAKE_CURRENT_SOURCE_DIR}/gen.py"', "tests", {}, True) equals "tests/gen.py"
  2. ✓ resolve_argument('"${CMAKE_SOURCE_DIR}/./x.py"', "tests", {}, True) equals "x.py"

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

What it checks (2)

  1. assert ( resolve_argument('"${CMAKE_CURRENT_SOURCE_DIR}/gen.py"', "tests", {}, True) == "tests/gen.py" ) observes resolve_argument
  2. assert resolve_argument('"${CMAKE_SOURCE_DIR}/./x.py"', "tests", {}, True) == "x.py" 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_argument_resolves_without_its_quotes→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_argument_resolves_without_its_quotes · 2 checksresolve_argumentREQ-DDB-PIPE-012 · measured
Also reaches 1 requirement

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