(t *testing.T)
| 784 | } |
| 785 | |
| 786 | func TestPrintImportTable_WithSkipped(t *testing.T) { |
| 787 | result := &sync.ImportResult{ |
| 788 | Skipped: []sync.ImportAction{ |
| 789 | {ExternalID: "GH-5", Title: "Duplicate task"}, |
| 790 | }, |
| 791 | } |
| 792 | summary := importSummary{Total: 1, Skipped: 1} |
| 793 | |
| 794 | output := capturePrintImportTable(t, result, summary, false) |
| 795 | |
| 796 | if !strings.Contains(output, "Skipped 1 task(s)") { |
| 797 | t.Errorf("expected 'Skipped 1 task(s)', got %q", output) |
| 798 | } |
| 799 | if !strings.Contains(output, "[GH-5] Duplicate task") { |
| 800 | t.Error("expected skipped task external ID and title in output") |
| 801 | } |
| 802 | } |
| 803 | |
| 804 | func TestPrintImportTable_WithErrors(t *testing.T) { |
| 805 | result := &sync.ImportResult{ |
nothing calls this directly
no test coverage detected