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

Function createStatusTestFiles

apps/cli/internal/cli/status_test.go:12–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func createStatusTestFiles(t *testing.T) string {
13 t.Helper()
14
15 tmpDir := t.TempDir()
16
17 tasks := map[string]string{
18 "001-setup.md": `---
19id: "001"
20title: "Setup project"
21status: completed
22priority: high
23effort: small
24dependencies: []
25tags: ["infra", "setup"]
26created: 2026-02-08
27---
28
29# Setup project
30
31Initial project setup with build tooling.
32`,
33 "002-auth.md": `---
34id: "002"
35title: "Implement authentication"
36status: in-progress
37priority: critical
38effort: large
39dependencies: ["001"]
40tags: ["backend", "security"]
41owner: "alice"
42created: 2026-02-08
43---
44
45# Implement authentication
46
47Add JWT-based auth with refresh tokens.
48`,
49 "003-ui.md": `---
50id: "003"
51title: "Build UI components"
52status: pending
53priority: medium
54effort: medium
55dependencies: ["002"]
56tags: ["frontend"]
57parent: "001"
58created: 2026-02-08
59---
60
61# Build UI components
62
63Create reusable component library.
64`,
65 }
66
67 for filename, content := range tasks {
68 path := filepath.Join(tmpDir, filename)
69 if err := os.WriteFile(path, []byte(content), 0644); err != nil {

Calls

no outgoing calls

Tested by

no test coverage detected