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

Function TestEdge_NonExistentDirectory

apps/cli/internal/cli/edge_cases_test.go:123–134  ·  view source on GitHub ↗

--- Non-existent directory ---

(t *testing.T)

Source from the content-addressed store, hash-verified

121// --- Non-existent directory ---
122
123func TestEdge_NonExistentDirectory(t *testing.T) {
124 resetListFlags()
125 noColor = true
126 _, err := captureListOutput(t, "/tmp/nonexistent-taskmd-dir-xyz-"+t.Name())
127 // Scanner should either error or return empty results
128 if err != nil {
129 if !strings.Contains(err.Error(), "scan failed") {
130 t.Errorf("expected 'scan failed' error, got: %v", err)
131 }
132 }
133 // If no error, that's also acceptable (scanner returns empty)
134}
135
136// --- Invalid sort field ---
137

Callers

nothing calls this directly

Calls 4

resetListFlagsFunction · 0.85
captureListOutputFunction · 0.85
ErrorMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected