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

Function createSetTestFiles

apps/cli/internal/cli/set_test.go:16–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers 15

TestSet_StatusFunction · 0.85
TestSet_PriorityFunction · 0.85
TestSet_EffortFunction · 0.85
TestSet_OwnerFunction · 0.85
TestSet_DoneFlagFunction · 0.85
TestSet_MultipleFieldsFunction · 0.85
TestSet_AllValidStatusesFunction · 0.85
TestSet_CancelledStatusFunction · 0.85
TestSet_AllValidEffortsFunction · 0.85
TestSet_InvalidStatusFunction · 0.85
TestSet_InvalidPriorityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected