test_the_aggregate_is_reachable_from_the_package_surface

Tests › tests/test_graph_stats.py

passed Passed in the packaged run.

What this test is for

Why it exists

`graph_stats` is exported, and its export is the whole point of gh#7.

Given

  1. —
→

When

  1. q.graph_stats(rich_db)
→

Then

  1. ✓ q.__all__ contains "graph_stats"
  2. ✓ q.graph_stats(rich_db).calls.logical_pairs is greater than 0

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.

Look up one name: everything the index holds about it · 2 of 226 steps

… 17 earlier steps

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pydossier18. _documentation_mentions → table_exists18table_exists19. _documentation_mentions → has_columns19has_columns20. has_columns → table_exists20table_exists21–22. _hint_from → _name_exists21_name_exists +1 more

… 56 steps between

callercallercallercallerclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesdossier79. _macro_def → symbol_provenance79symbol_provenance80. symbol_provenance → records_provenance80records_provenance81. records_provenance → has_columns81has_columns▶ test enters82. _gate_definitions → _gate_definition_gaps82_gate_definition_gaps83. _flatten_subject → _empty_callers_note83_empty_callers_note

… 143 later steps

2 more

tests/test_graph_stats.py:370 · its file's page

What it checks (2)

  1. assert "graph_stats" in q.__all__ not attributed
  2. assert q.graph_stats(rich_db).calls.logical_pairs > 0 observes graph_stats

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_the_aggregate_is_reachable_from_the_package_surface→graph_stats

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_the_aggregate_is_reachable_from_the_package_surface · 2 checksgraph_stats_symbol_provenancerecords_provenanceREQ-DDB-INDEX-004 · measuredgraph_statsfile_countsmeta_sectionREQ-DDB-MCP-001 · measuredgraph_statsread_build_signatureREQ-DDB-PIPE-005 · measuredgraph_statsconnectREQ-DDB-QUERY-001 · measuredgraph_statscall_edge_countstable_existsREQ-DDB-QUERY-003 · measuredgraph_statsREQ-DDB-QUERY-008 · measured
Also reaches 6 requirements

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