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

Function TestGet_TaskNotFound_ExactMode

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

Source from the content-addressed store, hash-verified

186}
187
188func TestGet_TaskNotFound_ExactMode(t *testing.T) {
189 tmpDir := createGetTestFiles(t)
190 resetGetFlags()
191 taskDir = tmpDir
192 getExact = true
193
194 err := runGet(getCmd, []string{"nonexistent"})
195 if err == nil {
196 t.Fatal("Expected error for non-matching query in exact mode")
197 }
198 if !strings.Contains(err.Error(), "task not found") {
199 t.Errorf("Expected 'task not found' error, got: %v", err)
200 }
201}
202
203func TestGet_TaskNotFound_NoMatches(t *testing.T) {
204 tmpDir := createGetTestFiles(t)

Callers

nothing calls this directly

Calls 4

createGetTestFilesFunction · 0.85
resetGetFlagsFunction · 0.85
runGetFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected