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

Function TestSearch_UnsupportedFormat

apps/cli/internal/cli/search_test.go:284–294  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

282}
283
284func TestSearch_UnsupportedFormat(t *testing.T) {
285 resetSearchFlags()
286
287 err := ValidateFormat("xml", []string{"table", "json", "yaml"})
288 if err == nil {
289 t.Fatal("expected error for unsupported format")
290 }
291 if !strings.Contains(err.Error(), "unsupported format") {
292 t.Errorf("expected 'unsupported format' error, got: %s", err.Error())
293 }
294}
295
296func TestSearch_EmptyTaskList(t *testing.T) {
297 resetSearchFlags()

Callers

nothing calls this directly

Calls 3

resetSearchFlagsFunction · 0.85
ValidateFormatFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected