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

Function TestEdge_InvalidFormat

apps/cli/internal/cli/edge_cases_test.go:155–171  ·  view source on GitHub ↗

--- Invalid format value ---

(t *testing.T)

Source from the content-addressed store, hash-verified

153// --- Invalid format value ---
154
155func TestEdge_InvalidFormat(t *testing.T) {
156 tmpDir := createEdgeCaseTestFiles(t)
157 resetListFlags()
158 noColor = true
159 listFormat = "xml"
160
161 _, err := captureListOutput(t, tmpDir)
162 if err == nil {
163 t.Fatal("expected error for invalid format")
164 }
165 if !strings.Contains(err.Error(), "unsupported format") {
166 t.Errorf("expected 'unsupported format' in error, got: %v", err)
167 }
168
169 // Reset format
170 listFormat = "table"
171}
172
173// --- Invalid filter syntax ---
174

Callers

nothing calls this directly

Calls 4

createEdgeCaseTestFilesFunction · 0.85
resetListFlagsFunction · 0.85
captureListOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected