REQ-DDB-WIKI-043: A test’s checks are pinned by syntax tree to the function each observes

← Requirements

What it requires

  1. 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.
  2. 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

Where it lives

  • Wiki: this site9

See it on the map

How it is met

implemented byresults (47 tests)_pinned_propose_modesapplychartflowchart_htmlflowchart_sectionpin_checksproposalstraced_values47 passed47 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (47)

Linked directly

36 tests: 36 passed

36 passed
testresultlinked byimplementers exercisedcalls away
test_a_linked_test_page_draws_its_flowchart_and_a_test_naming_no_mode_does_notpassedmeasured5 of 9—
test_a_page_marks_the_branch_its_recorded_run_failed_onpassedmeasured5 of 9—
test_an_imported_trace_is_drawn_over_its_test_flowpassedmeasured5 of 9—
test_a_catalog_that_moved_since_its_pin_fails_checkpassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatalpassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_a_failed_fetch_is_said_not_shown_as_no_issuespassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_a_model_no_code_realises_gets_no_pagepassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_a_public_site_keeps_requirement_text_off_the_requirement_pagepassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_a_repository_with_pinned_catalogues_gets_the_product_tracepassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_an_empty_report_is_a_measured_zeropassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_change_impact_follows_a_changed_function_to_requirements_and_flowspassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_exports_obey_the_audiencepassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_needs_json_contributes_requirementspassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_open_issues_reach_the_requirement_and_its_grouppassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_the_impact_page_links_the_map_change_lenspassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_the_site_names_a_declared_report_it_could_not_readpassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_the_site_shows_nodes_rules_catalogs_and_mutationspassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_versioned_builds_and_a_diff_between_thempassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_versions_burn_down_toward_roadmap_milestonespassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_without_a_report_the_change_is_not_measuredpassedmeasured4 of 9: _pinned, chart, flowchart_section, pin_checks—
test_the_committed_cli_surface_is_currentpassedmeasured1 of 9: _propose_modes—
test_a_flow_that_only_starts_at_the_function_is_the_fallbackpassedcatalogunknown—
test_a_test_no_product_flow_reaches_says_sopassedcatalogunknown—
test_a_recorded_failure_marks_the_branch_it_took_and_the_chart_playspassedmeasured3 of 9: chart, flowchart_html, pin_checks1
test_apply_writes_only_accepted_entries_and_refuses_a_moved_linepassedmeasured3 of 9: apply, pin_checks, proposals1
test_the_chart_renders_as_an_svg_the_player_can_steppassedmeasured3 of 9: chart, flowchart_html, pin_checks1
test_the_draft_lists_candidate_modes_and_the_unmarked_assertionspassedmeasured3 of 9: apply, pin_checks, proposals1
test_a_real_run_gives_a_pinned_check_its_valuepassedmeasured2 of 9: pin_checks, traced_values1
test_a_traced_run_gives_each_pinned_check_the_value_it_sawpassedmeasured2 of 9: pin_checks, traced_values1
test_each_assertion_is_a_diamond_failing_into_its_modepassedmeasured2 of 9: chart, pin_checks1
test_a_pin_carries_its_lines_for_pairing_with_a_runpassedmeasured1 of 9: pin_checks1
test_a_pinned_check_shows_its_traced_valuepassedmeasured1 of 9: _pinned1
test_an_unknown_language_pins_nothingpassedmeasured1 of 9: pin_checks1
test_cpp_checks_are_pinned_through_the_assertion_macrospassedmeasured1 of 9: pin_checks1
test_python_checks_are_pinned_direct_via_variable_or_notpassedmeasured1 of 9: pin_checks1
test_the_command_prints_yaml_and_applies_a_reviewed_filepassedmeasured4 of 9: _propose_modes, apply, pin_checks, proposals2
Reached through calls

11 tests: 11 passed

11 passed
testresultlinked byimplementers exercisedcalls away
test_check_refresh_brings_the_index_current_firstpassedinferred3 of 9: _propose_modes, pin_checks, proposals2
test_the_cli_check_exits_nonzero_on_a_problempassedinferred3 of 9: _propose_modes, pin_checks, proposals2
test_the_cli_creates_the_output_directorypassedinferred3 of 9: _propose_modes, pin_checks, proposals2
test_the_cli_prints_the_flow_as_jsonpassedinferred3 of 9: _propose_modes, pin_checks, proposals2
test_the_cli_prints_the_tracepassedinferred3 of 9: _propose_modes, pin_checks, proposals2
test_the_cli_takes_an_out_of_tree_configpassedinferred3 of 9: _propose_modes, pin_checks, proposals2
test_the_cli_writes_markdown_without_sphinxpassedinferred3 of 9: _propose_modes, pin_checks, proposals2
test_the_cli_writes_otlp_json_and_the_overlaypassedinferred3 of 9: _propose_modes, pin_checks, proposals2
test_the_flow_verb_prints_svgpassedinferred3 of 9: _propose_modes, pin_checks, proposals2
test_the_trace_cli_reads_imports_from_the_configpassedinferred3 of 9: _propose_modes, pin_checks, proposals2
test_wiki_check_prints_ears_notes_without_failing_on_thempassedinferred3 of 9: _propose_modes, pin_checks, proposals2