REQ-DDB-WIKI-043: A test’s checks are pinned by syntax tree to the function each observes¶
What it requires
- Each assertion in a test body is pinned, by a parser and never by regex, to one of the functions the test calls: direct (the call is inside the assertion), via a variable (the assertion reads a name assigned from that call earlier in the body), or not attributed.
- Python is read with
ast, C and C++ with tree-sitter over the common assertion macros; another language pins nothing and its checks are listed unpinned.
- tier
- PASS
- declared
- implemented
- priority
- P1
How it is met
Implemented by
_pinnedclew/wiki/testpages.py:671_propose_modesclew/wiki/command.py:196applyclew/wiki/proposemodes.py:127chartclew/wiki/flowchart.py:70flowchart_htmlclew/wiki/flowchart.py:94flowchart_sectionclew/wiki/flowchart.py:188pin_checksclew/wiki/checkpins.py:67proposalsclew/wiki/proposemodes.py:42traced_valuesclew/wiki/checkpins.py:292
Tests (47)
Linked directly
36 tests: 36 passed
36 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_a_linked_test_page_draws_its_flowchart_and_a_test_naming_no_mode_does_not | passed | measured | 5 of 9 | — |
test_a_page_marks_the_branch_its_recorded_run_failed_on | passed | measured | 5 of 9 | — |
test_an_imported_trace_is_drawn_over_its_test_flow | passed | measured | 5 of 9 | — |
test_a_catalog_that_moved_since_its_pin_fails_check | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_a_failed_fetch_is_said_not_shown_as_no_issues | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_a_model_no_code_realises_gets_no_page | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_a_public_site_keeps_requirement_text_off_the_requirement_page | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_a_repository_with_pinned_catalogues_gets_the_product_trace | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_an_empty_report_is_a_measured_zero | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_change_impact_follows_a_changed_function_to_requirements_and_flows | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_exports_obey_the_audience | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_needs_json_contributes_requirements | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_open_issues_reach_the_requirement_and_its_group | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_the_impact_page_links_the_map_change_lens | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_the_site_names_a_declared_report_it_could_not_read | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_the_site_shows_nodes_rules_catalogs_and_mutations | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_versioned_builds_and_a_diff_between_them | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_versions_burn_down_toward_roadmap_milestones | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_without_a_report_the_change_is_not_measured | passed | measured | 4 of 9: _pinned, chart, flowchart_section, pin_checks | — |
test_the_committed_cli_surface_is_current | passed | measured | 1 of 9: _propose_modes | — |
test_a_flow_that_only_starts_at_the_function_is_the_fallback | passed | catalog | unknown | — |
test_a_test_no_product_flow_reaches_says_so | passed | catalog | unknown | — |
test_a_recorded_failure_marks_the_branch_it_took_and_the_chart_plays | passed | measured | 3 of 9: chart, flowchart_html, pin_checks | 1 |
test_apply_writes_only_accepted_entries_and_refuses_a_moved_line | passed | measured | 3 of 9: apply, pin_checks, proposals | 1 |
test_the_chart_renders_as_an_svg_the_player_can_step | passed | measured | 3 of 9: chart, flowchart_html, pin_checks | 1 |
test_the_draft_lists_candidate_modes_and_the_unmarked_assertions | passed | measured | 3 of 9: apply, pin_checks, proposals | 1 |
test_a_real_run_gives_a_pinned_check_its_value | passed | measured | 2 of 9: pin_checks, traced_values | 1 |
test_a_traced_run_gives_each_pinned_check_the_value_it_saw | passed | measured | 2 of 9: pin_checks, traced_values | 1 |
test_each_assertion_is_a_diamond_failing_into_its_mode | passed | measured | 2 of 9: chart, pin_checks | 1 |
test_a_pin_carries_its_lines_for_pairing_with_a_run | passed | measured | 1 of 9: pin_checks | 1 |
test_a_pinned_check_shows_its_traced_value | passed | measured | 1 of 9: _pinned | 1 |
test_an_unknown_language_pins_nothing | passed | measured | 1 of 9: pin_checks | 1 |
test_cpp_checks_are_pinned_through_the_assertion_macros | passed | measured | 1 of 9: pin_checks | 1 |
test_python_checks_are_pinned_direct_via_variable_or_not | passed | measured | 1 of 9: pin_checks | 1 |
test_the_command_prints_yaml_and_applies_a_reviewed_file | passed | measured | 4 of 9: _propose_modes, apply, pin_checks, proposals | 2 |
Reached through calls
11 tests: 11 passed
11 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_check_refresh_brings_the_index_current_first | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |
test_the_cli_check_exits_nonzero_on_a_problem | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |
test_the_cli_creates_the_output_directory | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |
test_the_cli_prints_the_flow_as_json | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |
test_the_cli_prints_the_trace | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |
test_the_cli_takes_an_out_of_tree_config | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |
test_the_cli_writes_markdown_without_sphinx | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |
test_the_cli_writes_otlp_json_and_the_overlay | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |
test_the_flow_verb_prints_svg | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |
test_the_trace_cli_reads_imports_from_the_config | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |
test_wiki_check_prints_ears_notes_without_failing_on_them | passed | inferred | 3 of 9: _propose_modes, pin_checks, proposals | 2 |