test_an_empty_explicit_list_withdraws_rather_than_states

Tests › tests/test_tiers.py

passed Passed in the packaged run.

What this test is for

Why it exists

`--entry-patterns` with no values falls back, it does not resolve to nothing.

Given

  1. —
→

When

  1. resolved = resolve_layered(facts=FACTS, heuristics=GUESSES, declared=["%theirs%"], explicit=[])
  2. bare = resolve_layered(facts=FACTS, heuristics=GUESSES, explicit=[])
→

Then

  1. ✓ resolved.tier equals TIER_DECLARED
  2. ✓ resolved.values equals (*FACTS, "%theirs%")
  3. ✓ bare.tier equals TIER_HEURISTIC
  4. ✓ bare.values equals (*FACTS, *GUESSES)

tests/test_tiers.py:126 · its file's page

What it checks (4)

  1. assert resolved.tier == TIER_DECLARED observes resolve_layered via resolved
  2. assert resolved.values == (*FACTS, "%theirs%") observes resolve_layered via resolved
  3. assert bare.tier == TIER_HEURISTIC observes resolve_layered via bare
  4. assert bare.values == (*FACTS, *GUESSES) observes resolve_layered via bare

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_an_empty_explicit_list_withdraws_rather_than_states→resolve_layered

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_an_empty_explicit_list_withdraws_rather_than_states · 4 checksresolve_layeredREQ-DDB-CONFIG-006 · measured
Also reaches 1 requirement

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