(t *testing.T)
| 24 | } |
| 25 | |
| 26 | func TestFlowStepsRunInOrder(t *testing.T) { |
| 27 | f := New("seq", |
| 28 | WithCheckpoint(StoreCheckpoint(store.NewMemoryStore(), "seq")), |
| 29 | Steps(appendStep("a"), appendStep("b"), appendStep("c")), |
| 30 | ) |
| 31 | if err := f.Execute(context.Background(), ""); err != nil { |
| 32 | t.Fatalf("Execute: %v", err) |
| 33 | } |
| 34 | res := f.Results() |
| 35 | if len(res) != 1 || res[0].Answer != "a,b,c" { |
| 36 | t.Fatalf("steps ran out of order: %+v", res) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // A run that fails mid-way is persisted at the failing step and resumes |
| 41 | // there — without re-running the completed steps. |
nothing calls this directly
no test coverage detected
searching dependent graphs…