@ -19,7 +19,6 @@ package split
import (
"bufio"
"bytes"
"log"
"strconv"
"testing"
@ -39,7 +38,6 @@ func (s *MySuite) TestSplitStream(c *C) {
bytesWriter.Write([]byte(strconv.Itoa(i)))
}
bytesWriter.Flush()
log.Println(strconv.Itoa(bytesBuffer.Len()))
ch := make(chan SplitMessage)
reader := bytes.NewReader(bytesBuffer.Bytes())
go SplitStream(reader, 25, ch)
@ -17,7 +17,6 @@
package strbyteconv
. "gopkg.in/check.v1"
@ -46,7 +45,6 @@ func (s *MySuite) Test(c *C) {
c.Assert(value, Equals, "100TB")
bytes, err := StringToBytes("100B")
log.Println(err)
c.Assert(err, IsNil)
c.Assert(bytes, Equals, uint64(100))