MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / fakeAction

Struct fakeAction

go/engine/function_test.go:23–28  ·  view source on GitHub ↗

fakeAction is a minimal Executable that runs a user-supplied func against the scope and returns the configured next state. Used to drive Function tests without dragging the node package in.

Source from the content-addressed store, hash-verified

21 "github.com/stretchr/testify/require"
22)
23
24// fakeAction is a minimal Executable that runs a user-supplied func against
25// the scope and returns the configured next state. Used to drive Function tests
26// without dragging the node package in.
27type fakeAction struct {
28 id string
29 next string
30 run func(*Scope) error
31 outputs map[string]workflowapi.DataType

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected