(t *testing.T)
| 72 | } |
| 73 | |
| 74 | func TestContains(t *testing.T) { |
| 75 | t.Parallel() |
| 76 | |
| 77 | assertSetContains(t, []int{1, 2, 3, 4, 5}, []int{1, 2, 3, 4, 5}, []int{0, 6, -1, -2, 100}) |
| 78 | assertSetContains(t, []string{"hello", "world", "foo", "bar", "baz"}, []string{"hello", "world", "baz"}, []string{"not", "words", "in", "set"}) |
| 79 | assertSetContains(t, |
| 80 | []uuid.UUID{uuid.New(), uuid.MustParse("c7c6686d-a93c-4df2-bef9-5f837e9a33d5"), uuid.MustParse("8f3b3e0b-2c3f-46a5-a365-fd5b62bd8818")}, |
| 81 | []uuid.UUID{uuid.MustParse("c7c6686d-a93c-4df2-bef9-5f837e9a33d5")}, |
| 82 | []uuid.UUID{uuid.MustParse("1d00e27d-8de6-46f8-80d5-1da0ca83874a")}, |
| 83 | ) |
| 84 | } |
| 85 | |
| 86 | func TestFilter(t *testing.T) { |
| 87 | t.Parallel() |
nothing calls this directly
no test coverage detected