MCPcopy
hub / github.com/tirth8205/code-review-graph / _trace_flows

Function _trace_flows

code_review_graph/postprocessing.py:103–117  ·  view source on GitHub ↗

Trace execution flows from entry points.

(
    store: GraphStore,
    result: dict[str, Any],
    warnings: list[str],
)

Source from the content-addressed store, hash-verified

101
102
103def _trace_flows(
104 store: GraphStore,
105 result: dict[str, Any],
106 warnings: list[str],
107) -> None:
108 """Trace execution flows from entry points."""
109 try:
110 from .flows import store_flows, trace_flows
111
112 flows = trace_flows(store)
113 count = store_flows(store, flows)
114 result["flows_detected"] = count
115 except (sqlite3.OperationalError, ImportError) as e:
116 logger.warning("Flow detection failed: %s", e)
117 warnings.append(f"Flow detection failed: {type(e).__name__}: {e}")
118
119
120def _detect_communities(

Callers 3

run_post_processingFunction · 0.85
_run_postprocessFunction · 0.85
run_postprocessFunction · 0.85

Calls 2

trace_flowsFunction · 0.85
store_flowsFunction · 0.85

Tested by

no test coverage detected