Files
rtsp-simple-server/internal/protocols/rtmp/amf0/marshal_test.go
Alessandro Ros da7c5744b1 rtmp: add new AMF0 encoder and encoder (#3069)
This improves performance, security and removes a dependency.
2024-02-24 19:11:42 +01:00

18 lines
277 B
Go

package amf0
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestMarshal(t *testing.T) {
for _, ca := range cases {
t.Run(ca.name, func(t *testing.T) {
enc, err := Marshal(ca.dec)
require.NoError(t, err)
require.Equal(t, ca.enc, enc)
})
}
}