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

Function TestStatus_TaskNotFound_ExactMode

apps/cli/internal/cli/status_test.go:255–268  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

253}
254
255func TestStatus_TaskNotFound_ExactMode(t *testing.T) {
256 tmpDir := createStatusTestFiles(t)
257 resetStatusFlags()
258 taskDir = tmpDir
259 statusExact = true
260
261 err := runStatus(statusCmd, []string{"nonexistent"})
262 if err == nil {
263 t.Fatal("Expected error for non-matching query in exact mode")
264 }
265 if !strings.Contains(err.Error(), "task not found") {
266 t.Errorf("Expected 'task not found' error, got: %v", err)
267 }
268}
269
270func TestStatus_FuzzyMatch(t *testing.T) {
271 tmpDir := createStatusTestFiles(t)

Callers

nothing calls this directly

Calls 4

createStatusTestFilesFunction · 0.85
resetStatusFlagsFunction · 0.85
runStatusFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected