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

Method test_get_affected_flows_empty

tests/test_flows.py:450–461  ·  view source on GitHub ↗

No affected flows when no files match.

(self)

Source from the content-addressed store, hash-verified

448 assert handler_node.id in affected_entries
449
450 def test_get_affected_flows_empty(self):
451 """No affected flows when no files match."""
452 self._add_func("ep")
453 self._add_func("callee")
454 self._add_call("app.py::ep", "app.py::callee")
455
456 flows = trace_flows(self.store)
457 store_flows(self.store, flows)
458
459 result = get_affected_flows(self.store, ["nonexistent.py"])
460 assert result["total"] == 0
461 assert result["affected_flows"] == []
462
463 def test_get_affected_flows_no_files(self):
464 """Empty changed_files list returns no results."""

Callers

nothing calls this directly

Calls 5

_add_funcMethod · 0.95
_add_callMethod · 0.95
trace_flowsFunction · 0.90
store_flowsFunction · 0.90
get_affected_flowsFunction · 0.90

Tested by

no test coverage detected