(t *testing.T)
| 173 | } |
| 174 | |
| 175 | func TestCommitMsg_SingleTask(t *testing.T) { |
| 176 | tmpDir := createCommitMsgTestFiles(t) |
| 177 | resetCommitMsgFlags() |
| 178 | taskDir = tmpDir |
| 179 | commitMsgTaskID = "042" |
| 180 | |
| 181 | output, err := captureCommitMsgOutput(t) |
| 182 | if err != nil { |
| 183 | t.Fatalf("unexpected error: %v", err) |
| 184 | } |
| 185 | |
| 186 | if !strings.Contains(output, "chore(cli): add commit-msg command (task 042)") { |
| 187 | t.Errorf("expected subject line with task ID, got:\n%s", output) |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | func TestCommitMsg_TypeFlag(t *testing.T) { |
| 192 | tmpDir := createCommitMsgTestFiles(t) |
nothing calls this directly
no test coverage detected