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

Function createVerifyTestFiles

apps/cli/internal/cli/verify_test.go:17–136  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15)
16
17func createVerifyTestFiles(t *testing.T) string {
18 t.Helper()
19 tmpDir := t.TempDir()
20
21 tasks := map[string]string{
22 "001-pass.md": `---
23id: "001"
24title: "Task with passing checks"
25status: pending
26created: 2026-02-14
27verify:
28 - type: bash
29 run: "echo hello"
30 - type: bash
31 run: "echo world"
32---
33
34# Task with passing checks
35`,
36 "002-fail.md": `---
37id: "002"
38title: "Task with failing check"
39status: pending
40created: 2026-02-14
41verify:
42 - type: bash
43 run: "exit 1"
44---
45
46# Task with failing check
47`,
48 "003-assert.md": `---
49id: "003"
50title: "Task with assert check"
51status: pending
52created: 2026-02-14
53verify:
54 - type: assert
55 check: "The output contains expected data"
56---
57
58# Task with assert check
59`,
60 "004-mixed.md": `---
61id: "004"
62title: "Task with mixed checks"
63status: pending
64created: 2026-02-14
65verify:
66 - type: bash
67 run: "echo pass"
68 - type: bash
69 run: "exit 1"
70 - type: assert
71 check: "Something should be true"
72---
73
74# Task with mixed checks

Callers 12

TestVerify_AllPassFunction · 0.85
TestVerify_FailFunction · 0.85
TestVerify_AssertFunction · 0.85
TestVerify_MixedFunction · 0.85
TestVerify_NoFieldFunction · 0.85
TestVerify_TaskNotFoundFunction · 0.85
TestVerify_UnknownTypeFunction · 0.85
TestVerify_DryRunFunction · 0.85
TestVerify_JSONFunction · 0.85
TestVerify_CustomDirFunction · 0.85
TestVerify_FailFastFunction · 0.85
TestVerify_AllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected