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

Function TestPrintImportTable_WithSkipped

apps/cli/internal/cli/importcmd_test.go:786–802  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

784}
785
786func 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
804func TestPrintImportTable_WithErrors(t *testing.T) {
805 result := &sync.ImportResult{

Callers

nothing calls this directly

Calls 2

capturePrintImportTableFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected