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

Function TestUIDListIntersectDupFirstPacked

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

Source from the content-addressed store, hash-verified

162}
163
164func TestUIDListIntersectDupFirstPacked(t *testing.T) {
165 u := newUidPack([]uint64{1, 1, 2, 3})
166 v := newUidPack([]uint64{1, 2})
167 o := IntersectWithLinPacked(u, v)
168 require.Equal(t, []uint64{1, 2}, codec.Decode(o, 0))
169}
170
171func TestUIDListIntersectDupBothPacked(t *testing.T) {
172 u := newUidPack([]uint64{1, 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