test_an_empty_explicit_list_withdraws_rather_than_states¶
Tests › tests/test_tiers.py
What this test is for
Why it exists
`--entry-patterns` with no values falls back, it does not resolve to nothing.
Given
- —
When
resolved = resolve_layered(facts=FACTS, heuristics=GUESSES, declared=["%theirs%"], explicit=[])bare = resolve_layered(facts=FACTS, heuristics=GUESSES, explicit=[])
Then
- ✓ resolved.tier equals TIER_DECLARED
- ✓ resolved.values equals (*FACTS, "%theirs%")
- ✓ bare.tier equals TIER_HEURISTIC
- ✓ bare.values equals (*FACTS, *GUESSES)
tests/test_tiers.py:126 · its file's page
What it checks (4)
assert resolved.tier == TIER_DECLAREDobservesresolve_layeredviaresolvedassert resolved.values == (*FACTS, "%theirs%")observesresolve_layeredviaresolvedassert bare.tier == TIER_HEURISTICobservesresolve_layeredviabareassert bare.values == (*FACTS, *GUESSES)observesresolve_layeredviabare
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
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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-006 measured