1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-03 15:55:20 -05:00

merge bufio into buf

This commit is contained in:
Darien Raymond
2017-02-15 22:51:01 +01:00
parent 7199ffcaa2
commit 020b436827
16 changed files with 54 additions and 75 deletions

View File

@@ -6,7 +6,6 @@ import (
"testing"
. "v2ray.com/core/common/buf"
"v2ray.com/core/common/bufio"
"v2ray.com/core/testing/assert"
)
@@ -20,7 +19,7 @@ func TestWriter(t *testing.T) {
writeBuffer := bytes.NewBuffer(make([]byte, 0, 1024*1024))
writer := NewWriter(bufio.NewWriter(writeBuffer))
writer := NewWriter(NewBufferedWriter(writeBuffer))
err := writer.Write(lb)
assert.Error(err).IsNil()
assert.Bytes(expectedBytes).Equals(writeBuffer.Bytes())