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

     1  package pool
     2  
     3  import (
     4  	"fmt"
     5  	"gitee.com/sy_183/go-common/unit"
     6  	"testing"
     7  )
     8  
     9  func TestDynamicDataPool(t *testing.T) {
    10  	pool := NewDynamicDataPoolWithExp(64*unit.KiBiByte, unit.MeBiByte, ProvideSlicePool[*Data])
    11  	fmt.Println(pool.pools)
    12  }