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

Function TestCommitMsg_TaskNotFound

apps/cli/internal/cli/commit_msg_test.go:342–355  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

340}
341
342func TestCommitMsg_TaskNotFound(t *testing.T) {
343 tmpDir := createCommitMsgTestFiles(t)
344 resetCommitMsgFlags()
345 taskDir = tmpDir
346 commitMsgTaskID = "999"
347
348 _, err := captureCommitMsgOutput(t)
349 if err == nil {
350 t.Fatal("expected error for nonexistent task")
351 }
352 if !strings.Contains(err.Error(), "task not found") {
353 t.Errorf("expected 'task not found' error, got: %v", err)
354 }
355}
356
357func TestCommitMsg_MultiTask(t *testing.T) {
358 tmpDir := createCommitMsgTestFiles(t)

Callers

nothing calls this directly

Calls 4

createCommitMsgTestFilesFunction · 0.85
resetCommitMsgFlagsFunction · 0.85
captureCommitMsgOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected