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

Function TestCmdDoWithEmptyString

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

Source from the content-addressed store, hash-verified

1082 if _, err := db.Exec(
1083 `UPDATE tasks SET status='done', session_id=?, session_started=? WHERE slug='done-task'`,
1084 fakeSessionID("done-task"), flowdb.NowISO(),
1085 ); err != nil {
1086 t.Fatal(err)
1087 }
1088 db.Close()
1089
1090 const sid = "f00ba111-2222-4333-8444-555555555555"
1091 t.Setenv("CLAUDE_CODE_SESSION_ID", sid)
1092 if rc := cmdDo([]string{"done-task", "--here"}); rc != 1 {
1093 t.Errorf("rc=%d, want 1 (--here on done task should refuse)", rc)
1094 }
1095}
1096
1097func TestCmdDoWithFreshInjectsAfterBootstrap(t *testing.T) {
1098 setupFlowRoot(t)

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