MCPcopy
hub / github.com/IBM/AssetOpsBench / test_linear_chain

Method test_linear_chain

src/agent/tests/test_models.py:23–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 assert [s.step_number for s in plan.resolved_order()] == [1, 2, 3]
22
23 def test_linear_chain(self):
24 # 1 → 2 → 3
25 plan = Plan(steps=[_step(1), _step(2, [1]), _step(3, [2])], raw="")
26 order = [s.step_number for s in plan.resolved_order()]
27 assert order.index(1) < order.index(2) < order.index(3)
28
29 def test_diamond_dependency(self):
30 # 1 → 2, 1 → 3, {2,3} → 4

Callers

nothing calls this directly

Calls 3

resolved_orderMethod · 0.95
PlanClass · 0.90
_stepFunction · 0.85

Tested by

no test coverage detected