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

Function TestUIDListIntersect5Packed

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

Source from the content-addressed store, hash-verified

148}
149
150func TestUIDListIntersect5Packed(t *testing.T) {
151 u := newUidPack([]uint64{1, 2, 3})
152 v := newUidPack([]uint64{3, 5})
153 o := IntersectWithLinPacked(u, v)
154 require.Equal(t, []uint64{3}, codec.Decode(o, 0))
155}
156
157func TestUIDListIntersect6Packed(t *testing.T) {
158 u := newUidPack([]uint64{1, 2, 3, 4, 5, 6, 7, 9})

Callers

nothing calls this directly

Calls 3

DecodeFunction · 0.92
IntersectWithLinPackedFunction · 0.85
newUidPackFunction · 0.70

Tested by

no test coverage detected