REQ-DDB-WIKI-045: Each function has an activity diagram, lit by the test that links to it¶
What it requires
- A function's page carries its activity diagram, drawn once as static SVG from its parsed body (Python
ast, C/C++ tree-sitter): statements as boxes, conditions and loops as diamonds with branches indented and loop back edges, exits as terminals, each step carrying its absolute line range. - A test's call-flow box links to it with the lines that test executed, which the page lights.
- Withheld with the body under
exclude_bodies.
- tier
- PASS
- declared
- implemented
- priority
- P1
How it is met
Implemented by
_activityclew/wiki/symbols.py:626_callflowclew/wiki/testpages.py:527activity_svgclew/wiki/activity.py:74steps_ofclew/wiki/activity.py:60
Tests (54)
Linked directly
39 tests: 39 passed
39 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_an_audience_can_redact_owners | passed | measured | 3 of 4: _activity, activity_svg, steps_of | — |
test_calls_into_a_vendor_area_end_at_its_boundary_node | passed | measured | 3 of 4: _activity, activity_svg, steps_of | — |
test_owners_overlay_the_map_and_the_file_page | passed | measured | 3 of 4: _activity, activity_svg, steps_of | — |
test_vendor_areas_sit_outside_the_first_party_circle | passed | measured | 3 of 4: _activity, activity_svg, steps_of | — |
test_line_ranges_are_compact_and_ordered | passed | catalog | unknown | — |
test_the_page_script_lights_the_linked_lines | passed | catalog | unknown | — |
test_an_unknown_language_has_no_diagram | passed | measured | 2 of 4: activity_svg, steps_of | 1 |
test_the_svg_carries_each_steps_lines_for_lighting | passed | measured | 2 of 4: activity_svg, steps_of | 1 |
test_a_call_flow_box_links_to_the_activity_with_the_lines_this_test_ran | passed | measured | 1 of 4: _callflow | 1 |
test_a_short_call_flow_has_no_player | passed | measured | 1 of 4: _callflow | 1 |
test_a_test_s_call_flow_plays_in_call_order_with_briefs | passed | measured | 1 of 4: _callflow | 1 |
test_an_elif_is_a_condition_at_the_same_depth | passed | measured | 1 of 4: steps_of | 1 |
test_cpp_steps_follow_the_same_shape | passed | measured | 1 of 4: steps_of | 1 |
test_python_steps_follow_the_control_flow_with_absolute_lines | passed | measured | 1 of 4: steps_of | 1 |
test_a_catalog_that_moved_since_its_pin_fails_check | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_a_model_no_code_realises_gets_no_page | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_a_public_site_keeps_requirement_text_off_the_requirement_page | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_a_repository_with_pinned_catalogues_gets_the_product_trace | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_an_imported_trace_is_drawn_over_its_test_flow | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_exports_obey_the_audience | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_needs_json_contributes_requirements | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_the_site_names_a_declared_report_it_could_not_read | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_the_site_shows_nodes_rules_catalogs_and_mutations | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_versioned_builds_and_a_diff_between_them | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_versions_burn_down_toward_roadmap_milestones | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 5 |
test_a_build_writes_the_summary_beside_the_site | passed | measured | 3 of 4: _activity, activity_svg, steps_of | 5 |
test_build_writes_a_self_contained_site | passed | measured | 3 of 4: _activity, activity_svg, steps_of | 5 |
test_a_partner_site_bundles_no_body_on_symbol_pages | passed | measured | 1 of 4: _callflow | 5 |
test_a_partner_site_carries_no_call_text | passed | measured | 1 of 4: _callflow | 5 |
test_a_partner_site_lists_no_assertions | passed | measured | 1 of 4: _callflow | 5 |
test_a_failed_fetch_is_said_not_shown_as_no_issues | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 6 |
test_a_linked_test_page_draws_its_flowchart_and_a_test_naming_no_mode_does_not | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 6 |
test_a_page_marks_the_branch_its_recorded_run_failed_on | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 6 |
test_an_empty_report_is_a_measured_zero | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 6 |
test_change_impact_follows_a_changed_function_to_requirements_and_flows | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 6 |
test_open_issues_reach_the_requirement_and_its_group | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 6 |
test_the_impact_page_links_the_map_change_lens | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 6 |
test_without_a_report_the_change_is_not_measured | passed | measured | 4 of 4: _activity, _callflow, activity_svg, steps_of | 6 |
Reached through calls
15 tests: 15 passed
15 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_an_audience_that_excludes_bodies_gets_none | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 5 |
test_a_running_hub_is_opened_instead_and_a_dead_one_ignored | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 6 |
test_without_a_hub_the_static_site_is_built_and_opened | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 6 |
test_check_refresh_brings_the_index_current_first | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_the_cli_check_exits_nonzero_on_a_problem | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_the_cli_creates_the_output_directory | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_the_cli_prints_the_flow_as_json | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_the_cli_prints_the_trace | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_the_cli_takes_an_out_of_tree_config | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_the_cli_writes_markdown_without_sphinx | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_the_cli_writes_otlp_json_and_the_overlay | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_the_command_prints_yaml_and_applies_a_reviewed_file | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_the_flow_verb_prints_svg | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_the_trace_cli_reads_imports_from_the_config | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |
test_wiki_check_prints_ears_notes_without_failing_on_them | passed | inferred | 3 of 4: _activity, activity_svg, steps_of | 7 |