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

Function TestGet_ExactMatchByID

apps/cli/internal/cli/get_test.go:107–120  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

105}
106
107func TestGet_ExactMatchByID(t *testing.T) {
108 tmpDir := createGetTestFiles(t)
109 resetGetFlags()
110 taskDir = tmpDir
111
112 output := captureGetOutput(t, "001")
113
114 if !strings.Contains(output, "Task: 001") {
115 t.Error("Expected output to contain 'Task: 001'")
116 }
117 if !strings.Contains(output, "Title: Setup project") {
118 t.Error("Expected output to contain task title")
119 }
120}
121
122func TestGet_ExactMatchByTitle(t *testing.T) {
123 tmpDir := createGetTestFiles(t)

Callers

nothing calls this directly

Calls 4

createGetTestFilesFunction · 0.85
resetGetFlagsFunction · 0.85
captureGetOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected