MCPcopy Create free account
hub / github.com/driangle/taskmd / TestVerify_Mixed

Function TestVerify_Mixed

apps/cli/internal/cli/verify_test.go:241–265  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

239}
240
241func 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
267func TestVerify_NoField(t *testing.T) {
268 tmpDir := createVerifyTestFiles(t)

Callers

nothing calls this directly

Calls 3

createVerifyTestFilesFunction · 0.85
resetVerifyFlagsFunction · 0.85
captureVerifyOutputFunction · 0.85

Tested by

no test coverage detected