MCPcopy Create free account
hub / github.com/bytebase/bytebase / TestCanonicalizeIssueLabels

Function TestCanonicalizeIssueLabels

backend/store/issue_test.go:9–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func 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
23func TestCanonicalizeIssueLabelsEmpty(t *testing.T) {
24 require.Empty(t, CanonicalizeIssueLabels(nil))

Callers

nothing calls this directly

Calls 2

CanonicalizeIssueLabelsFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected