(t *testing.T)
| 324 | } |
| 325 | |
| 326 | func TestCommitMsg_NoGroupScope(t *testing.T) { |
| 327 | tmpDir := createCommitMsgTestFiles(t) |
| 328 | resetCommitMsgFlags() |
| 329 | taskDir = tmpDir |
| 330 | commitMsgTaskID = "044" |
| 331 | |
| 332 | output, err := captureCommitMsgOutput(t) |
| 333 | if err != nil { |
| 334 | t.Fatalf("unexpected error: %v", err) |
| 335 | } |
| 336 | |
| 337 | if !strings.HasPrefix(output, "chore: update README (task 044)") { |
| 338 | t.Errorf("expected no scope for task without group, got:\n%s", output) |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | func TestCommitMsg_TaskNotFound(t *testing.T) { |
| 343 | tmpDir := createCommitMsgTestFiles(t) |
nothing calls this directly
no test coverage detected