test_dot_flows_are_balanced_digraphs

Tests › tests/test_export_conformance.py

passed Passed in the packaged run.

What this test is for

Why it exists

Graphviz DOT: every flow export is a `digraph` with balanced braces.

Given

  1. —
→

When

  1. files = list((_html(site) / "exports" / "flows").glob("*.dot"))
  2. all( f.read_text().startswith("digraph ") and _balanced(f.read_text()) for f in files )
→

Then

  1. ✓ files holds
  2. ✓ all( f.read_text().startswith("digraph ") and _balanced(f.read_text()) for f in files ) holds

tests/test_export_conformance.py:81 · its file's page

What it checks (1)

  1. assert files and all( f.read_text().startswith("digraph ") and _balanced(f.read_text()) for f in files ) observes all

Where the product reaches it

  • dossier → _rank_enum_over_mirror → _class_side_is_only_enum_mirrors → all (flow)
  • dossier → subject_payload → _flatten_subject → list (flow)

Call flow

test_dot_flows_are_balanced_digraphs→list→_html→all→_balanced

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_dot_flows_are_balanced_digraphs · 1 checksallREQ-DDB-WIKI-054 · inferred
Also reaches 1 requirement

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