clew
  • Requirements
  • Flows
  • Tests
  • Change impact
  • Map
  • Architecture
  • Docs
  • SBOM

REQ-DDB-WIKI-045: Each function has an activity diagram, lit by the test that links to it¶

← Requirements

What it requires

  1. 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.
  2. A test's call-flow box links to it with the lines that test executed, which the page lights.
  3. Withheld with the body under exclude_bodies.
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Wiki: this site4

See it on the map

How it is met

implemented byresults (54 tests)_activity_callflowactivity_svgsteps_of54 passed54 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

  • _activity clew/wiki/symbols.py:626
  • _callflow clew/wiki/testpages.py:527
  • activity_svg clew/wiki/activity.py:74
  • steps_of clew/wiki/activity.py:60

Tests (54)

Linked directly

39 tests: 39 passed

39 passed
testresultlinked byimplementers exercisedcalls away
test_an_audience_can_redact_ownerspassedmeasured3 of 4: _activity, activity_svg, steps_of—
test_calls_into_a_vendor_area_end_at_its_boundary_nodepassedmeasured3 of 4: _activity, activity_svg, steps_of—
test_owners_overlay_the_map_and_the_file_pagepassedmeasured3 of 4: _activity, activity_svg, steps_of—
test_vendor_areas_sit_outside_the_first_party_circlepassedmeasured3 of 4: _activity, activity_svg, steps_of—
test_line_ranges_are_compact_and_orderedpassedcatalogunknown—
test_the_page_script_lights_the_linked_linespassedcatalogunknown—
test_an_unknown_language_has_no_diagrampassedmeasured2 of 4: activity_svg, steps_of1
test_the_svg_carries_each_steps_lines_for_lightingpassedmeasured2 of 4: activity_svg, steps_of1
test_a_call_flow_box_links_to_the_activity_with_the_lines_this_test_ranpassedmeasured1 of 4: _callflow1
test_a_short_call_flow_has_no_playerpassedmeasured1 of 4: _callflow1
test_a_test_s_call_flow_plays_in_call_order_with_briefspassedmeasured1 of 4: _callflow1
test_an_elif_is_a_condition_at_the_same_depthpassedmeasured1 of 4: steps_of1
test_cpp_steps_follow_the_same_shapepassedmeasured1 of 4: steps_of1
test_python_steps_follow_the_control_flow_with_absolute_linespassedmeasured1 of 4: steps_of1
test_a_catalog_that_moved_since_its_pin_fails_checkpassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatalpassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_a_model_no_code_realises_gets_no_pagepassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_a_public_site_keeps_requirement_text_off_the_requirement_pagepassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_a_repository_with_pinned_catalogues_gets_the_product_tracepassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_an_imported_trace_is_drawn_over_its_test_flowpassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_exports_obey_the_audiencepassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_needs_json_contributes_requirementspassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_the_site_names_a_declared_report_it_could_not_readpassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_the_site_shows_nodes_rules_catalogs_and_mutationspassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_versioned_builds_and_a_diff_between_thempassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_versions_burn_down_toward_roadmap_milestonespassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of5
test_a_build_writes_the_summary_beside_the_sitepassedmeasured3 of 4: _activity, activity_svg, steps_of5
test_build_writes_a_self_contained_sitepassedmeasured3 of 4: _activity, activity_svg, steps_of5
test_a_partner_site_bundles_no_body_on_symbol_pagespassedmeasured1 of 4: _callflow5
test_a_partner_site_carries_no_call_textpassedmeasured1 of 4: _callflow5
test_a_partner_site_lists_no_assertionspassedmeasured1 of 4: _callflow5
test_a_failed_fetch_is_said_not_shown_as_no_issuespassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of6
test_a_linked_test_page_draws_its_flowchart_and_a_test_naming_no_mode_does_notpassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of6
test_a_page_marks_the_branch_its_recorded_run_failed_onpassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of6
test_an_empty_report_is_a_measured_zeropassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of6
test_change_impact_follows_a_changed_function_to_requirements_and_flowspassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of6
test_open_issues_reach_the_requirement_and_its_grouppassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of6
test_the_impact_page_links_the_map_change_lenspassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of6
test_without_a_report_the_change_is_not_measuredpassedmeasured4 of 4: _activity, _callflow, activity_svg, steps_of6
Reached through calls

15 tests: 15 passed

15 passed
testresultlinked byimplementers exercisedcalls away
test_an_audience_that_excludes_bodies_gets_nonepassedinferred3 of 4: _activity, activity_svg, steps_of5
test_a_running_hub_is_opened_instead_and_a_dead_one_ignoredpassedinferred3 of 4: _activity, activity_svg, steps_of6
test_without_a_hub_the_static_site_is_built_and_openedpassedinferred3 of 4: _activity, activity_svg, steps_of6
test_check_refresh_brings_the_index_current_firstpassedinferred3 of 4: _activity, activity_svg, steps_of7
test_the_cli_check_exits_nonzero_on_a_problempassedinferred3 of 4: _activity, activity_svg, steps_of7
test_the_cli_creates_the_output_directorypassedinferred3 of 4: _activity, activity_svg, steps_of7
test_the_cli_prints_the_flow_as_jsonpassedinferred3 of 4: _activity, activity_svg, steps_of7
test_the_cli_prints_the_tracepassedinferred3 of 4: _activity, activity_svg, steps_of7
test_the_cli_takes_an_out_of_tree_configpassedinferred3 of 4: _activity, activity_svg, steps_of7
test_the_cli_writes_markdown_without_sphinxpassedinferred3 of 4: _activity, activity_svg, steps_of7
test_the_cli_writes_otlp_json_and_the_overlaypassedinferred3 of 4: _activity, activity_svg, steps_of7
test_the_command_prints_yaml_and_applies_a_reviewed_filepassedinferred3 of 4: _activity, activity_svg, steps_of7
test_the_flow_verb_prints_svgpassedinferred3 of 4: _activity, activity_svg, steps_of7
test_the_trace_cli_reads_imports_from_the_configpassedinferred3 of 4: _activity, activity_svg, steps_of7
test_wiki_check_prints_ears_notes_without_failing_on_thempassedinferred3 of 4: _activity, activity_svg, steps_of7

Flows through it

  • Build this wiki from the index

Raise an issue on GitHub

clew Generated by clew wiki from the repository's index