MCPcopy
hub / github.com/nektos/act / TestSaveState

Function TestSaveState

pkg/runner/command_test.go:201–213  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

199}
200
201func 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}

Callers

nothing calls this directly

Calls 1

commandHandlerMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…