mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-18 13:40:50 +08:00
18 lines
277 B
Go
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)
|
|
})
|
|
}
|
|
}
|