(t *testing.T)
| 437 | } |
| 438 | |
| 439 | func TestSet_InvalidStatus(t *testing.T) { |
| 440 | tmpDir := createSetTestFiles(t) |
| 441 | resetSetFlags() |
| 442 | taskDir = tmpDir |
| 443 | setTaskID = "001" |
| 444 | setStatus = "invalid" |
| 445 | |
| 446 | _, err := captureSetOutput(t) |
| 447 | if err == nil { |
| 448 | t.Fatal("Expected error for invalid status") |
| 449 | } |
| 450 | if !strings.Contains(err.Error(), "invalid status") { |
| 451 | t.Errorf("Expected 'invalid status' error, got: %v", err) |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | func TestSet_InvalidPriority(t *testing.T) { |
| 456 | tmpDir := createSetTestFiles(t) |
nothing calls this directly
no test coverage detected