stubAutoRunner replaces autoRunner with fn.
(t *testing.T, fn func(h harness.Harness, sessionID, prompt string, opts harness.LaunchOpts) error)
| 173 | |
| 174 | // stubAutoRunner replaces autoRunner with fn. |
| 175 | func 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. |
no outgoing calls
no test coverage detected