This commit is contained in:
langhuihui
2024-03-22 15:43:09 +08:00
parent b2bce81e55
commit 0efbe886c8
29 changed files with 2179 additions and 172 deletions

18
pkg/util/buffer_test.go Normal file
View 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)
}
})
}