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

Function TestFreelistHashmap_init_panics

internal/freelist/hashmap_test.go:15–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestFreelistHashmap_init_panics(t *testing.T) {
16 f := NewHashMapFreelist()
17 require.Panics(t, func() {
18 // init expects sorted input
19 f.Init([]common.Pgid{25, 5})
20 })
21}
22
23func TestFreelistHashmap_allocate(t *testing.T) {
24 f := NewHashMapFreelist()

Callers

nothing calls this directly

Calls 2

NewHashMapFreelistFunction · 0.85
InitMethod · 0.65

Tested by

no test coverage detected