renaming: AcquireByteBuffer -> Acquire, ReleaseByteBuffer -> Release

This commit is contained in:
Aliaksandr Valialkin
2016-06-23 11:07:55 +03:00
parent e8ad8e40ca
commit 164e50ac3f
4 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -32,12 +32,12 @@ func TestByteBufferAcquireReleaseConcurrent(t *testing.T) {
func testByteBufferAcquireRelease(t *testing.T) {
for i := 0; i < 10; i++ {
expectedS := fmt.Sprintf("num %d", i)
b := AcquireByteBuffer()
b := Acquire()
b.B = append(b.B, "num "...)
b.B = append(b.B, fmt.Sprintf("%d", i)...)
if string(b.B) != expectedS {
t.Fatalf("unexpected result: %q. Expecting %q", b.B, expectedS)
}
ReleaseByteBuffer(b)
Release(b)
}
}