(t *testing.T)
| 282 | } |
| 283 | |
| 284 | func 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 | |
| 296 | func TestSearch_EmptyTaskList(t *testing.T) { |
| 297 | resetSearchFlags() |
nothing calls this directly
no test coverage detected