(t *testing.T)
| 453 | } |
| 454 | |
| 455 | func TestSet_InvalidPriority(t *testing.T) { |
| 456 | tmpDir := createSetTestFiles(t) |
| 457 | resetSetFlags() |
| 458 | taskDir = tmpDir |
| 459 | setTaskID = "001" |
| 460 | setPriority = "urgent" |
| 461 | |
| 462 | _, err := captureSetOutput(t) |
| 463 | if err == nil { |
| 464 | t.Fatal("Expected error for invalid priority") |
| 465 | } |
| 466 | if !strings.Contains(err.Error(), "invalid priority") { |
| 467 | t.Errorf("Expected 'invalid priority' error, got: %v", err) |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | func TestSet_InvalidEffort(t *testing.T) { |
| 472 | tmpDir := createSetTestFiles(t) |
nothing calls this directly
no test coverage detected