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

Function TestBuildBootstrapPromptForPlaybookRun

internal/app/do_test.go:636–650  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

634 t.Errorf("done task should not spawn iTerm: got %d spawns", *spawns)
635 }
636}
637
638func TestCmdDoFuzzyAmbiguous(t *testing.T) {
639 setupFlowRoot(t)
640 seedTask(t, "auth fix")
641 seedTask(t, "auth refactor")
642
643 spawns, _ := stubITerm(t)
644 if rc := cmdDo([]string{"auth"}); rc != 1 {
645 t.Errorf("rc=%d, want 1 for ambiguous ref", rc)
646 }
647 if atomic.LoadInt64(spawns) != 0 {
648 t.Errorf("ambiguous ref should not spawn: %d", *spawns)
649 }
650}
651
652func TestCmdDoFuzzyExactWins(t *testing.T) {
653 setupFlowRoot(t)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected