(t *testing.T)
| 500 | } |
| 501 | |
| 502 | func TestNext_UnsupportedFormat(t *testing.T) { |
| 503 | tmpDir := createNextTestTaskFiles(t) |
| 504 | |
| 505 | resetNextFlags() |
| 506 | nextFormat = "csv" |
| 507 | |
| 508 | _, err := captureNextOutput(t, []string{tmpDir}) |
| 509 | if err == nil { |
| 510 | t.Fatal("Expected error for unsupported format") |
| 511 | } |
| 512 | |
| 513 | if !strings.Contains(err.Error(), "unsupported format") { |
| 514 | t.Errorf("Expected 'unsupported format' error, got: %v", err) |
| 515 | } |
| 516 | } |
| 517 | |
| 518 | func TestNext_JSONFormat(t *testing.T) { |
| 519 | tmpDir := createNextTestTaskFiles(t) |
nothing calls this directly
no test coverage detected