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

Function TestUIDListIntersect3Packed

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

Source from the content-addressed store, hash-verified

134}
135
136func TestUIDListIntersect3Packed(t *testing.T) {
137 u := newUidPack([]uint64{1, 2, 3})
138 v := newUidPack([]uint64{2})
139 o := IntersectWithLinPacked(u, v)
140 require.Equal(t, []uint64{2}, codec.Decode(o, 0))
141}
142
143func TestUIDListIntersect4Packed(t *testing.T) {
144 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