mirror of
https://github.com/nikdoof/vsphere-influxdb-go.git
synced 2025-12-20 14:09:21 +00:00
add vendoring with go dep
This commit is contained in:
16
vendor/github.com/influxdata/influxdb/pkg/pool/bytes_test.go
generated
vendored
Normal file
16
vendor/github.com/influxdata/influxdb/pkg/pool/bytes_test.go
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
package pool_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/influxdb/pkg/pool"
|
||||
)
|
||||
|
||||
func TestLimitedBytePool_Put_MaxSize(t *testing.T) {
|
||||
bp := pool.NewLimitedBytes(1, 10)
|
||||
bp.Put(make([]byte, 1024)) // should be dropped
|
||||
|
||||
if got, exp := cap(bp.Get(10)), 10; got != exp {
|
||||
t.Fatalf("max cap size exceeded: got %v, exp %v", got, exp)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user