(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func TestSyncSet_Contains(t *testing.T) { |
| 35 | s := newSyncSet() |
| 36 | count := 1000 |
| 37 | for i := 0; i < count; i++ { |
| 38 | s.Insert(i) |
| 39 | } |
| 40 | |
| 41 | for i := 0; i < count; i++ { |
| 42 | assert.True(t, s.Contains(i)) |
| 43 | s.Remove(i) |
| 44 | } |
| 45 | |
| 46 | for i := 0; i < count; i++ { |
| 47 | assert.False(t, s.Contains(i)) |
| 48 | } |
| 49 | } |
nothing calls this directly
no test coverage detected