(t *testing.T)
| 239 | } |
| 240 | |
| 241 | func TestVerify_Mixed(t *testing.T) { |
| 242 | tmpDir := createVerifyTestFiles(t) |
| 243 | resetVerifyFlags() |
| 244 | taskDir = tmpDir |
| 245 | verifyTaskID = "004" |
| 246 | verifyAll = true // run all steps despite failures |
| 247 | |
| 248 | output, err := captureVerifyOutput(t) |
| 249 | if err == nil { |
| 250 | t.Fatal("expected error for mixed checks with failures") |
| 251 | } |
| 252 | if !errors.Is(err, ErrVerifyFailed) { |
| 253 | t.Fatalf("expected ErrVerifyFailed, got: %v", err) |
| 254 | } |
| 255 | |
| 256 | if !strings.Contains(output, "PASS") { |
| 257 | t.Errorf("expected PASS in output, got: %s", output) |
| 258 | } |
| 259 | if !strings.Contains(output, "FAIL") { |
| 260 | t.Errorf("expected FAIL in output, got: %s", output) |
| 261 | } |
| 262 | if !strings.Contains(output, "PEND") { |
| 263 | t.Errorf("expected PEND in output, got: %s", output) |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | func TestVerify_NoField(t *testing.T) { |
| 268 | tmpDir := createVerifyTestFiles(t) |
nothing calls this directly
no test coverage detected