(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func TestContext_BothSources(t *testing.T) { |
| 203 | tmpDir := createContextTestFiles(t) |
| 204 | resetContextFlags() |
| 205 | taskDir = tmpDir |
| 206 | setupTestConfig(t, tmpDir) |
| 207 | |
| 208 | ctxTaskID = "003" |
| 209 | output, err := captureContextOutput(t) |
| 210 | if err != nil { |
| 211 | t.Fatalf("unexpected error: %v", err) |
| 212 | } |
| 213 | |
| 214 | if !strings.Contains(output, "Scope files") { |
| 215 | t.Errorf("expected scope files section, got: %s", output) |
| 216 | } |
| 217 | if !strings.Contains(output, "Explicit files") { |
| 218 | t.Errorf("expected explicit files section, got: %s", output) |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | func TestContext_EmptyTask(t *testing.T) { |
| 223 | tmpDir := createContextTestFiles(t) |
nothing calls this directly
no test coverage detected