(t *testing.T)
| 385 | } |
| 386 | |
| 387 | func TestGet_Dependencies(t *testing.T) { |
| 388 | tmpDir := createGetTestFiles(t) |
| 389 | resetGetFlags() |
| 390 | taskDir = tmpDir |
| 391 | |
| 392 | // Task 003 depends on 002, and 002 blocks 003 |
| 393 | output := captureGetOutput(t, "003") |
| 394 | |
| 395 | if !strings.Contains(output, "Depends on: 002 (Implement authentication)") { |
| 396 | t.Error("Expected depends-on info for task 003") |
| 397 | } |
| 398 | |
| 399 | // Check that task 002 shows it blocks 003 |
| 400 | output = captureGetOutput(t, "002") |
| 401 | if !strings.Contains(output, "Blocks: 003 (Build UI components)") { |
| 402 | t.Error("Expected blocks info for task 002") |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | // --- Unit tests for helper functions --- |
| 407 |
nothing calls this directly
no test coverage detected