(t *testing.T)
| 199 | } |
| 200 | |
| 201 | func TestSaveState(t *testing.T) { |
| 202 | rc := &RunContext{ |
| 203 | CurrentStep: "step", |
| 204 | StepResults: map[string]*model.StepResult{}, |
| 205 | } |
| 206 | |
| 207 | ctx := context.Background() |
| 208 | |
| 209 | handler := rc.commandHandler(ctx) |
| 210 | handler("::save-state name=state-name::state-value\n") |
| 211 | |
| 212 | assert.Equal(t, "state-value", rc.IntraActionState["step"]["state-name"]) |
| 213 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…