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

Function TestVerify_DryRun

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

Source from the content-addressed store, hash-verified

315}
316
317func TestVerify_DryRun(t *testing.T) {
318 tmpDir := createVerifyTestFiles(t)
319 resetVerifyFlags()
320 taskDir = tmpDir
321 verifyTaskID = "001"
322 verifyDryRun = true
323
324 output, err := captureVerifyOutput(t)
325 if err != nil {
326 t.Fatalf("unexpected error: %v", err)
327 }
328
329 if !strings.Contains(output, "SKIP") {
330 t.Errorf("expected SKIP in dry-run output, got: %s", output)
331 }
332 // Should not contain PASS since nothing was executed
333 if strings.Contains(output, "PASS") {
334 t.Errorf("dry-run should not show PASS, got: %s", output)
335 }
336}
337
338func TestVerify_JSON(t *testing.T) {
339 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