(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestNewBufferPool(t *testing.T) { |
| 13 | var pool = utils.NewBufferPool() |
| 14 | var b = pool.Get() |
| 15 | b.WriteString("Hello, World") |
| 16 | t.Log(b.String()) |
| 17 | |
| 18 | pool.Put(b) |
| 19 | t.Log(b.String()) |
| 20 | |
| 21 | b = pool.Get() |
| 22 | t.Log(b.String()) |
| 23 | } |
| 24 | |
| 25 | func BenchmarkNewBufferPool1(b *testing.B) { |
| 26 | var data = []byte(strings.Repeat("Hello", 1024)) |
nothing calls this directly
no test coverage detected