MCPcopy
hub / github.com/etcd-io/bbolt / randomPgids

Function randomPgids

internal/freelist/freelist_test.go:586–593  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

584}
585
586func randomPgids(n int) []common.Pgid {
587 pgids := make(common.Pgids, n)
588 for i := range pgids {
589 pgids[i] = common.Pgid(rand.Int63())
590 }
591 sort.Sort(pgids)
592 return pgids
593}
594
595func Test_freelist_ReadIDs_and_getFreePageIDs(t *testing.T) {
596 f := newTestFreelist()

Callers 1

Calls 1

PgidTypeAlias · 0.92

Tested by

no test coverage detected