(t *testing.T)
| 400 | } |
| 401 | |
| 402 | func TestDistinct_WithDuplicateItems(t *testing.T) { |
| 403 | items := []string{"foo", "bar", "foo", "baz", "bar"} |
| 404 | assert.Equal(t, []string{"foo", "bar", "baz"}, util.SliceDistinct(items)) |
| 405 | } |
| 406 | |
| 407 | func TestRemoveIndex_Empty(t *testing.T) { |
| 408 | result := util.RemoveIndex([]string{}, 0) |
nothing calls this directly
no test coverage detected