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

Function TestVerify_TaskNotFound

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

Source from the content-addressed store, hash-verified

281}
282
283func TestVerify_TaskNotFound(t *testing.T) {
284 tmpDir := createVerifyTestFiles(t)
285 resetVerifyFlags()
286 taskDir = tmpDir
287 verifyTaskID = "999"
288
289 _, err := captureVerifyOutput(t)
290 if err == nil {
291 t.Fatal("expected error for non-existent task")
292 }
293 if !strings.Contains(err.Error(), "task not found") {
294 t.Errorf("expected 'task not found' error, got: %v", err)
295 }
296}
297
298func TestVerify_UnknownType(t *testing.T) {
299 tmpDir := createVerifyTestFiles(t)

Callers

nothing calls this directly

Calls 4

createVerifyTestFilesFunction · 0.85
resetVerifyFlagsFunction · 0.85
captureVerifyOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected