You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lal/pkg/rtmp/handshake_test.go

27 lines
558 B
Go

package rtmp
import (
"bytes"
"github.com/q191201771/lal/pkg/util/assert"
"testing"
)
func TestAll(t *testing.T) {
var err error
var hc HandshakeClient
var hs HandshakeServer
b := &bytes.Buffer{}
err = hc.WriteC0C1(b)
assert.Equal(t, nil, err, "fxxk.")
err = hs.ReadC0C1(b)
assert.Equal(t, nil, err, "fxxk.")
err = hs.WriteS0S1S2(b)
assert.Equal(t, nil, err, "fxxk.")
err = hc.ReadS0S1S2(b)
assert.Equal(t, nil, err, "fxxk.")
err = hc.WriteC2(b)
assert.Equal(t, nil, err, "fxxk.")
err = hs.ReadC2(b)
assert.Equal(t, nil, err, "fxxk.")
}