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

Function TestCommitMsg_SingleTask

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

Source from the content-addressed store, hash-verified

173}
174
175func 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
191func TestCommitMsg_TypeFlag(t *testing.T) {
192 tmpDir := createCommitMsgTestFiles(t)

Callers

nothing calls this directly

Calls 3

createCommitMsgTestFilesFunction · 0.85
resetCommitMsgFlagsFunction · 0.85
captureCommitMsgOutputFunction · 0.85

Tested by

no test coverage detected