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

Function TestCmdDoWithFileMissing

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

Source from the content-addressed store, hash-verified

1095}
1096
1097func TestCmdDoWithFreshInjectsAfterBootstrap(t *testing.T) {
1098 setupFlowRoot(t)
1099 seedTask(t, "with-fresh")
1100 _, getScript := stubITerm(t)
1101
1102 if rc := cmdDo([]string{"with-fresh", "--with", "check upstream PR"}); rc != 0 {
1103 t.Fatalf("rc=%d", rc)
1104 }
1105 script := getScript()
1106 if !strings.Contains(script, "claude --session-id ") {
1107 t.Errorf("fresh path should still use --session-id: %s", script)
1108 }
1109 if !strings.Contains(script, "execution session for flow task with-fresh") {
1110 t.Errorf("bootstrap prompt should be intact: %s", script)
1111 }

Callers

nothing calls this directly

Calls 4

setupFlowRootFunction · 0.85
seedTaskFunction · 0.85
stubITermFunction · 0.85
cmdDoFunction · 0.85

Tested by

no test coverage detected