(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func TestSetFromArray(t *testing.T) { |
| 35 | cases := [][][]string{ |
| 36 | {{}, {}}, |
| 37 | {{"*"}, {}}, |
| 38 | {{"a"}, {"a"}}, |
| 39 | {{"a", "b"}, {"a", "b"}}, |
| 40 | {{"a", "a"}, {"a"}}, |
| 41 | {{"a", "b", "a"}, {"a", "b"}}, |
| 42 | {{"a", "*", "b"}, {"a", "b"}}, |
| 43 | } |
| 44 | for _, cas := range cases { |
| 45 | channels, err := SetFromArray(cas[0], RemoveStar) |
| 46 | assert.NoError(t, err, "SetFromArray failed") |
| 47 | assert.Equal(t, BaseSetOf(t, cas[1]...), channels) |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func TestSetFromArrayWithStar(t *testing.T) { |
| 52 | cases := [][][]string{ |
nothing calls this directly
no test coverage detected