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

Function createCommitMsgTestFiles

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

Source from the content-addressed store, hash-verified

11)
12
13func createCommitMsgTestFiles(t *testing.T) string {
14 t.Helper()
15 tmpDir := t.TempDir()
16
17 tasksDir := filepath.Join(tmpDir, "cli")
18 if err := os.MkdirAll(tasksDir, 0755); err != nil {
19 t.Fatalf("failed to create tasks dir: %v", err)
20 }
21
22 files := map[string]string{
23 "cli/042-feature.md": `---
24id: "042"
25title: "Add commit-msg command"
26status: completed
27priority: medium
28effort: medium
29tags: [cli, git]
30group: cli
31created: 2026-02-16
32---
33
34# Add commit-msg command
35
36- [x] Create command scaffolding
37- [x] Implement message generation
38- [ ] Add documentation
39`,
40 "cli/043-bugfix.md": `---
41id: "043"
42title: "Fix output formatting"
43status: completed
44priority: high
45effort: small
46tags: [cli, bug]
47group: cli
48created: 2026-02-16
49---
50
51# Fix output formatting
52
53- [x] Fix newline handling
54- [ ] Update tests
55`,
56 "044-no-group.md": `---
57id: "044"
58title: "Update README"
59status: pending
60priority: low
61effort: small
62tags: [docs]
63created: 2026-02-16
64---
65
66# Update README
67
68- [x] Add installation instructions
69- [x] Add usage examples
70`,

Calls

no outgoing calls

Tested by

no test coverage detected