(t *testing.T)
| 1176 | } |
| 1177 | |
| 1178 | func TestSet_PositionalArgAndFlagSameValue(t *testing.T) { |
| 1179 | tmpDir := createSetTestFiles(t) |
| 1180 | resetSetFlags() |
| 1181 | taskDir = tmpDir |
| 1182 | setTaskID = "001" |
| 1183 | setStatus = "completed" |
| 1184 | |
| 1185 | output, err := captureSetOutputWithArgs(t, []string{"001"}) |
| 1186 | if err != nil { |
| 1187 | t.Fatalf("unexpected error: %v", err) |
| 1188 | } |
| 1189 | |
| 1190 | if !strings.Contains(output, "Updated task 001") { |
| 1191 | t.Error("Expected confirmation message") |
| 1192 | } |
| 1193 | } |
| 1194 | |
| 1195 | func TestSet_PositionalArgAndFlagConflict(t *testing.T) { |
| 1196 | tmpDir := createSetTestFiles(t) |
nothing calls this directly
no test coverage detected