(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestCanonicalizeIssueLabels(t *testing.T) { |
| 10 | got := CanonicalizeIssueLabels([]string{ |
| 11 | " release ", |
| 12 | "bug", |
| 13 | "", |
| 14 | "bug ", |
| 15 | " feature", |
| 16 | "\t", |
| 17 | "release", |
| 18 | }) |
| 19 | |
| 20 | require.Equal(t, []string{"bug", "feature", "release"}, got) |
| 21 | } |
| 22 | |
| 23 | func TestCanonicalizeIssueLabelsEmpty(t *testing.T) { |
| 24 | require.Empty(t, CanonicalizeIssueLabels(nil)) |
nothing calls this directly
no test coverage detected