mirror of
https://github.com/Monibuca/engine.git
synced 2026-04-23 00:07:06 +08:00
fc7ac81c4e
fix: PacketizeRTP memory leak fix: avoid read files beyond the log path
19 lines
238 B
Go
19 lines
238 B
Go
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)
|
|
}
|
|
})
|
|
}
|