(t *testing.T)
| 708 | } |
| 709 | |
| 710 | func TestProjectHint(t *testing.T) { |
| 711 | tests := []struct { |
| 712 | source string |
| 713 | expected string |
| 714 | }{ |
| 715 | {"github", "GitHub repository (e.g. owner/repo)"}, |
| 716 | {"jira", "Jira project key (e.g. PROJ)"}, |
| 717 | {"unknown", "Project identifier"}, |
| 718 | {"", "Project identifier"}, |
| 719 | } |
| 720 | |
| 721 | for _, tt := range tests { |
| 722 | t.Run(tt.source, func(t *testing.T) { |
| 723 | got := projectHint(tt.source) |
| 724 | if got != tt.expected { |
| 725 | t.Errorf("projectHint(%q) = %q, want %q", tt.source, got, tt.expected) |
| 726 | } |
| 727 | }) |
| 728 | } |
| 729 | } |
| 730 | |
| 731 | func capturePrintImportTable(t *testing.T, result *sync.ImportResult, summary importSummary, quietMode bool) string { |
| 732 | t.Helper() |
nothing calls this directly
no test coverage detected