mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-10-07 02:42:45 +08:00
update
This commit is contained in:
18
pkg/util/buffer_test.go
Normal file
18
pkg/util/buffer_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestBuffer(t *testing.T) {
|
||||
t.Run(t.Name(), func(t *testing.T) {
|
||||
var b Buffer
|
||||
t.Log(b == nil)
|
||||
b.Write([]byte{1, 2, 3})
|
||||
if b == nil {
|
||||
t.Fail()
|
||||
} else {
|
||||
t.Logf("b:% x", b)
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user