gitee.com/sy_183/go-common@v1.0.5-0.20231205030221-958cfe129b47/pool/buffer_test.go (about)

     1  package pool
     2  
     3  import (
     4  	"gitee.com/sy_183/go-common/unit"
     5  	"testing"
     6  )
     7  
     8  func TestBuffer(t *testing.T) {
     9  	buffer := NewBuffer(unit.MeBiByte, 2048)
    10  	for {
    11  		buffer.Get()
    12  	}
    13  }