MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / TestUIDListIntersect2Packed

Function TestUIDListIntersect2Packed

algo/packed_test.go:129–134  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

127}
128
129func TestUIDListIntersect2Packed(t *testing.T) {
130 u := newUidPack([]uint64{1, 2, 3})
131 v := newUidPack([]uint64{1, 2, 3, 4, 5})
132 o := IntersectWithLinPacked(u, v)
133 require.Equal(t, []uint64{1, 2, 3}, codec.Decode(o, 0))
134}
135
136func TestUIDListIntersect3Packed(t *testing.T) {
137 u := newUidPack([]uint64{1, 2, 3})

Callers

nothing calls this directly

Calls 3

DecodeFunction · 0.92
IntersectWithLinPackedFunction · 0.85
newUidPackFunction · 0.70

Tested by

no test coverage detected