(t *testing.T)
| 220 | } |
| 221 | |
| 222 | func TestContext_EmptyTask(t *testing.T) { |
| 223 | tmpDir := createContextTestFiles(t) |
| 224 | resetContextFlags() |
| 225 | taskDir = tmpDir |
| 226 | setupTestConfig(t, tmpDir) |
| 227 | |
| 228 | ctxTaskID = "005" |
| 229 | output, err := captureContextOutput(t) |
| 230 | if err != nil { |
| 231 | t.Fatalf("unexpected error: %v", err) |
| 232 | } |
| 233 | |
| 234 | if !strings.Contains(output, "No context files found") { |
| 235 | t.Errorf("expected 'No context files found', got: %s", output) |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | func TestContext_TaskNotFound(t *testing.T) { |
| 240 | tmpDir := createContextTestFiles(t) |
nothing calls this directly
no test coverage detected