test_a_pending_fast_refresh_raises_the_derived_axis

Tests › tests/test_derived_axis.py

passed Passed in the packaged run.

What this test is for

Why it exists

notices() names the derived axis, the files and the stale layers.

Verifies REQ-DDB-INDEX-006

Given

  1. —
→

When

  1. found = freshness.notices({"fast": _FAST}, code={})
  2. derived = [n for n in found if n["axis"] == freshness.AXIS_DERIVED]
  3. message = derived[0]["message"]
→

Then

  1. ✓ len(derived) equals 1
  2. ✓ message contains "src/a.c"
  3. ✓ message contains "reachability"
  4. ✓ message contains "threads"

What it exercises

The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.

thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 6 of 142 steps

… 87 earlier steps

thread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pyclew/mcp_server/freshness.pytry (line 3260)try_first_build_worker88. code_identity → package_version88package_version89. db_status → notices89notices90. notices → code_identity90code_identity▶ test enters91. notices → _data_notice91_data_notice92–94. _data_notice → _cost_clause92_cost_clause +2 more95–98. notices → _schema_notice95_schema_notice +3 more99. _run_build_walked → declared_scope_rejection99declared_scope_rejection100. declared_scope_rejection → _declared_index_scope100_declared_index_scope

… 42 later steps

2 more

tests/test_derived_axis.py:31 · its file's page

What it checks (2)

  1. assert len(derived) == 1 not attributed
  2. assert "src/a.c" in message and "reachability" in message and "threads" in message not attributed

Where the product reaches it

  • index → _index_action → build_or_refresh → db_status → notices (flow)

Call flow

test_a_pending_fast_refresh_raises_the_derived_axis→notices

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_pending_fast_refresh_raises_the_derived_axis · 2 checksnoticesREQ-DDB-MCP-004 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-INDEX-006catalogunknown
Also reaches 1 requirement

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