MCPcopy
hub / github.com/Workiva/go-datastructures / TestCompressedEquals

Function TestCompressedEquals

bitarray/sparse_bitarray_test.go:201–215  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

199}
200
201func TestCompressedEquals(t *testing.T) {
202 ba := newSparseBitArray()
203 other := newSparseBitArray()
204
205 assert.True(t, ba.Equals(other))
206
207 ba.SetBit(5)
208 assert.False(t, ba.Equals(other))
209
210 other.SetBit(5)
211 assert.True(t, ba.Equals(other))
212
213 ba.ClearBit(5)
214 assert.False(t, ba.Equals(other))
215}
216
217func TestCompressedIntersects(t *testing.T) {
218 ba := newSparseBitArray()

Callers

nothing calls this directly

Calls 4

newSparseBitArrayFunction · 0.85
EqualsMethod · 0.65
SetBitMethod · 0.65
ClearBitMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…