MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / TestAllContainerMethodsAllContainerTypes065

Function TestAllContainerMethodsAllContainerTypes065

runcontainer_test.go:2140–2166  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2138}
2139
2140func TestAllContainerMethodsAllContainerTypes065(t *testing.T) {
2141 t.Run("each of the container methods that takes two containers should handle all 3x3==9 possible ways of being called -- without panic", func(t *testing.T) {
2142 a := newArrayContainer()
2143 r := newRunContainer16()
2144 b := newBitmapContainer()
2145
2146 arr := []container{a, r, b}
2147 for _, i := range arr {
2148 for _, j := range arr {
2149 i.and(j)
2150 i.iand(j)
2151 i.andNot(j)
2152
2153 i.iandNot(j)
2154 i.xor(j)
2155 i.equals(j)
2156
2157 i.or(j)
2158 i.ior(j)
2159 i.intersects(j)
2160
2161 i.lazyOR(j)
2162 i.lazyIOR(j)
2163 }
2164 }
2165 })
2166}
2167
2168type twoCall func(r container) container
2169

Callers

nothing calls this directly

Calls 14

newArrayContainerFunction · 0.85
newRunContainer16Function · 0.85
newBitmapContainerFunction · 0.85
andMethod · 0.65
iandMethod · 0.65
andNotMethod · 0.65
iandNotMethod · 0.65
xorMethod · 0.65
equalsMethod · 0.65
orMethod · 0.65
iorMethod · 0.65
intersectsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…