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

Function TestBuildAutoBootstrapPrompt

internal/app/auto_test.go:325–335  ·  view source on GitHub ↗

TestBuildAutoBootstrapPrompt sanity-checks that the autonomous prompt tells the session it is headless, forbids interactive prompting, instructs self-closure via flow done, AND insists on persisting toward a closeable state (giving up only as a last resort).

(t *testing.T)

Source from the content-addressed store, hash-verified

323// instructs self-closure via flow done, AND insists on persisting toward
324// a closeable state (giving up only as a last resort).
325func TestBuildAutoBootstrapPrompt(t *testing.T) {
326 p := buildAutoBootstrapPrompt("my-task", "regular", "")
327 for _, want := range []string{
328 "my-task", "flow done", "AskUserQuestion", "autonomous",
329 "PERSIST", "LAST RESORT", "EXHAUST",
330 } {
331 if !strings.Contains(p, want) {
332 t.Errorf("auto prompt missing %q", want)
333 }
334 }
335}

Callers

nothing calls this directly

Calls 1

buildAutoBootstrapPromptFunction · 0.85

Tested by

no test coverage detected