MCPcopy Create free account
hub / github.com/Facets-cloud/flow / stubAutoRunner

Function stubAutoRunner

internal/app/auto_test.go:175–180  ·  view source on GitHub ↗

stubAutoRunner replaces autoRunner with fn.

(t *testing.T, fn func(h harness.Harness, sessionID, prompt string, opts harness.LaunchOpts) error)

Source from the content-addressed store, hash-verified

173
174// stubAutoRunner replaces autoRunner with fn.
175func stubAutoRunner(t *testing.T, fn func(h harness.Harness, sessionID, prompt string, opts harness.LaunchOpts) error) {
176 t.Helper()
177 old := autoRunner
178 autoRunner = fn
179 t.Cleanup(func() { autoRunner = old })
180}
181
182// seedRunningAuto creates an in-progress task already in auto 'running'
183// state, as if a supervisor had just launched it.

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected