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

Function TestUIDListIntersectDupSecondPacked

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

Source from the content-addressed store, hash-verified

176}
177
178func TestUIDListIntersectDupSecondPacked(t *testing.T) {
179 u := newUidPack([]uint64{1, 2, 3, 5})
180 v := newUidPack([]uint64{1, 1, 2, 4})
181 o := IntersectWithLinPacked(u, v)
182 require.Equal(t, []uint64{1, 2}, codec.Decode(o, 0))
183}
184
185func TestIntersectSorted1Packed(t *testing.T) {
186 input := []*pb.UidPack{

Callers

nothing calls this directly

Calls 3

DecodeFunction · 0.92
IntersectWithLinPackedFunction · 0.85
newUidPackFunction · 0.70

Tested by

no test coverage detected