first commit

This commit is contained in:
2024-03-29 11:40:39 +03:00
commit 1a1ce70a5c
62 changed files with 4080 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package timeout
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetBuffer(t *testing.T) {
pool := &BufferPool{}
buf := pool.Get()
assert.NotEqual(t, nil, buf)
pool.Put(buf)
buf2 := pool.Get()
assert.NotEqual(t, nil, buf2)
}