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

Function newTestFreelist

internal/freelist/freelist_test.go:616–622  ·  view source on GitHub ↗

newTestFreelist get the freelist type from env and initial the freelist

()

Source from the content-addressed store, hash-verified

614
615// newTestFreelist get the freelist type from env and initial the freelist
616func newTestFreelist() Interface {
617 if env := os.Getenv(TestFreelistType); env == "hashmap" {
618 return NewHashMapFreelist()
619 }
620
621 return NewArrayFreelist()
622}

Callers 15

TestFreelist_freeFunction · 0.85
TestFreelist_releaseFunction · 0.85
TestFreeList_initFunction · 0.85
TestFreeList_reloadFunction · 0.85
TestFreelist_readFunction · 0.85
TestFreelist_read_panicsFunction · 0.85

Calls 2

NewHashMapFreelistFunction · 0.85
NewArrayFreelistFunction · 0.85

Tested by

no test coverage detected