(t *testing.T)
| 556 | } |
| 557 | |
| 558 | func TestNext_YAMLFormat(t *testing.T) { |
| 559 | tmpDir := createNextTestTaskFiles(t) |
| 560 | |
| 561 | resetNextFlags() |
| 562 | nextFormat = "yaml" |
| 563 | nextLimit = 2 |
| 564 | |
| 565 | output, err := captureNextOutput(t, []string{tmpDir}) |
| 566 | if err != nil { |
| 567 | t.Fatalf("runNext failed: %v", err) |
| 568 | } |
| 569 | |
| 570 | // Basic YAML structure check |
| 571 | if !strings.Contains(output, "rank:") { |
| 572 | t.Error("Expected YAML output to contain 'rank:'") |
| 573 | } |
| 574 | if !strings.Contains(output, "id:") { |
| 575 | t.Error("Expected YAML output to contain 'id:'") |
| 576 | } |
| 577 | if !strings.Contains(output, "reasons:") { |
| 578 | t.Error("Expected YAML output to contain 'reasons:'") |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | func TestNext_TableFormat(t *testing.T) { |
| 583 | tmpDir := createNextTestTaskFiles(t) |
nothing calls this directly
no test coverage detected