MCPcopy
hub / github.com/RoaringBitmap/roaring / testContainerPanics

Function testContainerPanics

arraycontainer_test.go:130–145  ·  view source on GitHub ↗
(t *testing.T, c container)

Source from the content-addressed store, hash-verified

128}
129
130func testContainerPanics(t *testing.T, c container) {
131 f := &struct {
132 arrayContainer
133 }{}
134
135 assert.Panics(t, func() { c.or(f) })
136 assert.Panics(t, func() { c.ior(f) })
137 assert.Panics(t, func() { c.lazyIOR(f) })
138 assert.Panics(t, func() { c.lazyOR(f) })
139 assert.Panics(t, func() { c.and(f) })
140 assert.Panics(t, func() { c.intersects(f) })
141 assert.Panics(t, func() { c.iand(f) })
142 assert.Panics(t, func() { c.xor(f) })
143 assert.Panics(t, func() { c.andNot(f) })
144 assert.Panics(t, func() { c.iandNot(f) })
145}
146
147func TestArrayContainerNumberOfRuns025(t *testing.T) {
148 seed := int64(42)

Callers 1

Calls 10

orMethod · 0.65
iorMethod · 0.65
lazyIORMethod · 0.65
lazyORMethod · 0.65
andMethod · 0.65
intersectsMethod · 0.65
iandMethod · 0.65
xorMethod · 0.65
andNotMethod · 0.65
iandNotMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…