MCPcopy Create free account
hub / github.com/valyala/bytebufferpool / testPoolVariousSizes

Function testPoolVariousSizes

pool_test.go:65–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

63}
64
65func testPoolVariousSizes(t *testing.T) {
66 for i := 0; i < steps+1; i++ {
67 n := (1 << uint32(i))
68
69 testGetPut(t, n)
70 testGetPut(t, n+1)
71 testGetPut(t, n-1)
72
73 for j := 0; j < 10; j++ {
74 testGetPut(t, j+n)
75 }
76 }
77}
78
79func testGetPut(t *testing.T, n int) {
80 bb := Get()

Callers 2

Calls 1

testGetPutFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…