test_a_long_component_name_is_never_cut

Tests › tests/test_wiki_architecture.py

passed Passed in the packaged run.

What this test is for

Why it exists

FOUND BY LOOKING: "Build: concurrency and config layer" overflowed its box. The box is as wide as its longest label.

Given

  1. long = "Build: concurrency and config layer, the long one"
  2. graph = { "components": [{"id": long, "declared": True, "functions": 1, "files": 1}], "links": [], }
→

When

  1. l3 = _level(architecture_html("Demo", graph, []), 3)
  2. width = float( l3.split('class="c4-comp declared"', 1)[1].split('width="', 1)[1].split('"', 1)[0] )
→

Then

  1. ✓ width is at least len(long) * 7

tests/test_wiki_architecture.py:104 · its file's page

What it checks (1)

  1. assert width >= len(long) * 7, width not attributed

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_a_long_component_name_is_never_cut→_level→architecture_html

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_a_long_component_name_is_never_cut · 1 checksarchitecture_htmlREQ-DDB-WIKI-046 · measured
Also reaches 1 requirement

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