test_each_assertion_is_a_diamond_failing_into_its_mode

Tests › tests/test_flowchart.py

passed Passed in the packaged run.

What this test is for

Why it exists

Marker first; else the test's only mode; never a guess.

Given

  1. —
→

When

  1. nodes = chart(_pins(), BODY, 10, ["FM-1"])
  2. kinds = [n.kind for n in nodes]
  3. checks = [n for n in nodes if n.kind == "check"]
3 more
  1. steps = [n.text for n in nodes if n.kind == "step"]
  2. all("add" in s for s in steps)
  3. two = chart(_pins(), BODY, 10, ["FM-1", "FM-3"])
→

Then

  1. ✓ kinds[0] equals "start"
  2. ✓ kinds[-1] equals "passed"
  3. ✓ [c.line for c in checks] equals [12, 13]
  4. ✓ [c.fails_into for c in checks] equals ["FM-2", "FM-1"]
  5. ✓ steps holds
  6. ✓ all("add" in s for s in steps) holds
  7. ✓ [c.fails_into for c in two if c.kind == "check"] equals ["FM-2", UNASSIGNED]

tests/test_flowchart.py:41 · its file's page

What it checks (5)

  1. assert kinds[0] == "start" and kinds[-1] == "passed" not attributed
  2. assert [c.line for c in checks] == [12, 13] not attributed
  3. assert [c.fails_into for c in checks] == ["FM-2", "FM-1"], "marker wins; else the only mode" not attributed
  4. assert steps and all("add" in s for s in steps), "a box is the function the check observes" observes all
  5. assert [c.fails_into for c in two if c.kind == "check"] == ["FM-2", UNASSIGNED] observes chart via two

Where the product reaches it

  • dossier → _rank_enum_over_mirror → _class_side_is_only_enum_mirrors → all (flow)

Call flow

test_each_assertion_is_a_diamond_failing_into_its_mode→chart→_pins→all

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_each_assertion_is_a_diamond_failing_into_its_mode · 5 checkschartREQ-DDB-WIKI-043 · measuredallREQ-DDB-WIKI-054 · inferred
Also reaches 2 requirements

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