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

Function getUids

codec/codec_test.go:26–35  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

24)
25
26func getUids(size int) []uint64 {
27 var uids []uint64
28 last := uint64(rand.Intn(100))
29 uids = append(uids, last)
30 for i := 1; i < size; i++ {
31 last += uint64(rand.Intn(33))
32 uids = append(uids, last)
33 }
34 return uids
35}
36
37func TestUidPack(t *testing.T) {
38 // Some edge case tests.

Callers 6

TestHasDeletedEdgeMethod · 0.85
TestUidPackFunction · 0.85
TestBufferUidPackFunction · 0.85
BenchmarkGzipFunction · 0.85
benchmarkUidPackEncodeFunction · 0.85
benchmarkUidPackDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected