(t *testing.T)
| 391 | } |
| 392 | |
| 393 | func TestSet_AllValidPriorities(t *testing.T) { |
| 394 | priorities := []string{"low", "medium", "high", "critical"} |
| 395 | for _, priority := range priorities { |
| 396 | t.Run(priority, func(t *testing.T) { |
| 397 | tmpDir := createSetTestFiles(t) |
| 398 | resetSetFlags() |
| 399 | taskDir = tmpDir |
| 400 | setTaskID = "001" |
| 401 | setPriority = priority |
| 402 | |
| 403 | _, err := captureSetOutput(t) |
| 404 | if err != nil { |
| 405 | t.Fatalf("unexpected error for priority %q: %v", priority, err) |
| 406 | } |
| 407 | |
| 408 | content, _ := os.ReadFile(filepath.Join(tmpDir, "001-setup.md")) |
| 409 | if !strings.Contains(string(content), "priority: "+priority) { |
| 410 | t.Errorf("Expected file to contain priority: %s", priority) |
| 411 | } |
| 412 | }) |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | func TestSet_AllValidEfforts(t *testing.T) { |
| 417 | efforts := []string{"small", "medium", "large"} |
nothing calls this directly
no test coverage detected