test_what_the_build_file_does_not_settle_stays_unresolved

Tests › tests/test_cmake_resolve.py

passed Passed in the packaged run.

What this test is for

Why it exists

The binary dir, a found program, an unknown variable, a path out of the tree: "".

Given

  1. —
→

When

  1. resolve_argument("${CMAKE_CURRENT_BINARY_DIR}/error.c", "library", {}, True)
  2. resolve_argument("${PERL_EXECUTABLE}", "library", {}, True)
  3. resolve_argument("${CMAKE_CURRENT_SOURCE_DIR}/../../outside.pl", "library", {}, True)
  4. resolve_argument("${CMAKE_SOURCE_DIR}/a.h", "library", {}, False)
→

Then

  1. ✓ resolve_argument("${CMAKE_CURRENT_BINARY_DIR}/error.c", "library", {}, True) equals ""
  2. ✓ resolve_argument("${PERL_EXECUTABLE}", "library", {}, True) equals ""
  3. ✓ resolve_argument("${CMAKE_CURRENT_SOURCE_DIR}/../../outside.pl", "library", {}, True) equals ""
  4. ✓ resolve_argument("${CMAKE_SOURCE_DIR}/a.h", "library", {}, False) equals ""

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

What it checks (4)

  1. assert resolve_argument("${CMAKE_CURRENT_BINARY_DIR}/error.c", "library", {}, True) == "" observes resolve_argument
  2. assert resolve_argument("${PERL_EXECUTABLE}", "library", {}, True) == "" observes resolve_argument
  3. assert ( resolve_argument("${CMAKE_CURRENT_SOURCE_DIR}/../../outside.pl", "library", {}, True) == "" ) observes resolve_argument
  4. assert resolve_argument("${CMAKE_SOURCE_DIR}/a.h", "library", {}, False) == "", ( "no root CMakeLists" ) 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_what_the_build_file_does_not_settle_stays_unresolved→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_what_the_build_file_does_not_settle_stays_unresolved · 4 checksresolve_argumentREQ-DDB-PIPE-012 · measured
Also reaches 1 requirement

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