(t *testing.T)
| 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 | |
| 1097 | func TestCmdDoWithFreshInjectsAfterBootstrap(t *testing.T) { |
| 1098 | setupFlowRoot(t) |
nothing calls this directly
no test coverage detected