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

Function TestGet_TaskNotFound_NoMatches

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

Source from the content-addressed store, hash-verified

201}
202
203func TestGet_TaskNotFound_NoMatches(t *testing.T) {
204 tmpDir := createGetTestFiles(t)
205 resetGetFlags()
206 taskDir = tmpDir
207 getThreshold = 0.99 // very high threshold so nothing matches
208
209 err := runGet(getCmd, []string{"zzzzzzzzzzzzzzz"})
210 if err == nil {
211 t.Fatal("Expected error for garbage query")
212 }
213 if !strings.Contains(err.Error(), "task not found") {
214 t.Errorf("Expected 'task not found' error, got: %v", err)
215 }
216}
217
218func TestGet_TextFormat(t *testing.T) {
219 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