(t *testing.T)
| 656 | } |
| 657 | |
| 658 | func TestStatus_NoArgs_OneInProgress(t *testing.T) { |
| 659 | tmpDir := createStatusTestFiles(t) |
| 660 | resetStatusFlags() |
| 661 | taskDir = tmpDir |
| 662 | |
| 663 | output, err := captureStatusNoArgsOutput(t) |
| 664 | if err != nil { |
| 665 | t.Fatalf("unexpected error: %v", err) |
| 666 | } |
| 667 | |
| 668 | if !strings.Contains(output, "Task: 002") { |
| 669 | t.Error("Expected output to contain 'Task: 002'") |
| 670 | } |
| 671 | if !strings.Contains(output, "Implement authentication") { |
| 672 | t.Error("Expected output to contain task title") |
| 673 | } |
| 674 | } |
| 675 | |
| 676 | func createStatusTestFilesMultipleInProgress(t *testing.T) string { |
| 677 | t.Helper() |
nothing calls this directly
no test coverage detected