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

Function TestCommitMsg_NoGroupScope

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

Source from the content-addressed store, hash-verified

324}
325
326func 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
342func TestCommitMsg_TaskNotFound(t *testing.T) {
343 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