(t *testing.T)
| 395 | } |
| 396 | |
| 397 | func TestDistinct_WithoutDuplicateItems(t *testing.T) { |
| 398 | items := []string{"foo", "bar", "baz"} |
| 399 | assert.Equal(t, items, util.SliceDistinct(items)) |
| 400 | } |
| 401 | |
| 402 | func TestDistinct_WithDuplicateItems(t *testing.T) { |
| 403 | items := []string{"foo", "bar", "foo", "baz", "bar"} |
nothing calls this directly
no test coverage detected