MCPcopy
hub / github.com/dgraph-io/dgraph / TestUIDListIntersectDupBothPacked

Function TestUIDListIntersectDupBothPacked

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

Source from the content-addressed store, hash-verified

169}
170
171func TestUIDListIntersectDupBothPacked(t *testing.T) {
172 u := newUidPack([]uint64{1, 1, 2, 3, 5})
173 v := newUidPack([]uint64{1, 1, 2, 4})
174 o := IntersectWithLinPacked(u, v)
175 require.Equal(t, []uint64{1, 1, 2}, codec.Decode(o, 0))
176}
177
178func TestUIDListIntersectDupSecondPacked(t *testing.T) {
179 u := newUidPack([]uint64{1, 2, 3, 5})

Callers

nothing calls this directly

Calls 3

DecodeFunction · 0.92
IntersectWithLinPackedFunction · 0.85
newUidPackFunction · 0.70

Tested by

no test coverage detected