(t *testing.T)
| 340 | } |
| 341 | |
| 342 | func 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 | |
| 357 | func TestCommitMsg_MultiTask(t *testing.T) { |
| 358 | tmpDir := createCommitMsgTestFiles(t) |
nothing calls this directly
no test coverage detected