(t *testing.T)
| 187 | } |
| 188 | |
| 189 | func TestCmdShowTaskMissingDefault(t *testing.T) { |
| 190 | _, _ = showListEditDB(t) |
| 191 | t.Setenv("CLAUDE_CODE_SESSION_ID", "") |
| 192 | out := captureStdout(t, func() { |
| 193 | if rc := cmdShow([]string{"task"}); rc != 1 { |
| 194 | t.Errorf("rc=%d, want 1", rc) |
| 195 | } |
| 196 | }) |
| 197 | if !strings.Contains(out, "CLAUDE_CODE_SESSION_ID") { |
| 198 | t.Errorf("missing env hint; out=%q", out) |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | func TestCmdShowTaskUnknown(t *testing.T) { |
| 203 | _, _ = showListEditDB(t) |
nothing calls this directly
no test coverage detected