(t *testing.T)
| 252 | } |
| 253 | |
| 254 | func TestContext_MissingFiles(t *testing.T) { |
| 255 | tmpDir := createContextTestFiles(t) |
| 256 | resetContextFlags() |
| 257 | taskDir = tmpDir |
| 258 | setupTestConfig(t, tmpDir) |
| 259 | |
| 260 | ctxTaskID = "006" |
| 261 | output, err := captureContextOutput(t) |
| 262 | if err != nil { |
| 263 | t.Fatalf("unexpected error: %v", err) |
| 264 | } |
| 265 | |
| 266 | if !strings.Contains(output, "does/not/exist.go") { |
| 267 | t.Errorf("expected missing file path in output, got: %s", output) |
| 268 | } |
| 269 | if !strings.Contains(output, "missing") { |
| 270 | t.Errorf("expected (missing) annotation, got: %s", output) |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | func TestContext_JSON(t *testing.T) { |
| 275 | tmpDir := createContextTestFiles(t) |
nothing calls this directly
no test coverage detected