(t *testing.T)
| 1193 | } |
| 1194 | |
| 1195 | func TestSet_PositionalArgAndFlagConflict(t *testing.T) { |
| 1196 | tmpDir := createSetTestFiles(t) |
| 1197 | resetSetFlags() |
| 1198 | taskDir = tmpDir |
| 1199 | setTaskID = "002" |
| 1200 | setStatus = "completed" |
| 1201 | |
| 1202 | _, err := captureSetOutputWithArgs(t, []string{"001"}) |
| 1203 | if err == nil { |
| 1204 | t.Fatal("Expected error when positional arg and --task-id conflict") |
| 1205 | } |
| 1206 | if !strings.Contains(err.Error(), "conflicting task ID") { |
| 1207 | t.Errorf("Expected 'conflicting task ID' error, got: %v", err) |
| 1208 | } |
| 1209 | } |
| 1210 | |
| 1211 | func TestSet_NeitherPositionalNorFlag(t *testing.T) { |
| 1212 | tmpDir := createSetTestFiles(t) |
nothing calls this directly
no test coverage detected