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

Function TestGet_FuzzyMatch_Selection

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

Source from the content-addressed store, hash-verified

323}
324
325func TestGet_FuzzyMatch_Selection(t *testing.T) {
326 tmpDir := createGetTestFiles(t)
327 resetGetFlags()
328 taskDir = tmpDir
329
330 // "ui" should fuzzy match "Build UI components"
331 getStdinReader = strings.NewReader("1\n")
332 defer func() { getStdinReader = os.Stdin }()
333
334 output := captureGetOutput(t, "ui")
335
336 if !strings.Contains(output, "Task: 003") {
337 t.Error("Expected fuzzy match selection to return task 003")
338 }
339}
340
341func TestGet_FuzzyMatch_Cancel(t *testing.T) {
342 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