improve tests

This commit is contained in:
aler9
2022-08-14 20:54:57 +02:00
parent 40c1ff8dfe
commit a0a168d26c
11 changed files with 78 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
package gortsplib
package gortsplib //nolint:dupl
import (
"testing"
@@ -7,8 +7,9 @@ import (
"github.com/stretchr/testify/require"
)
func TestTrackPCMUNew(t *testing.T) {
func TestTrackPCMUAttributes(t *testing.T) {
track := &TrackPCMU{}
require.Equal(t, 8000, track.ClockRate())
require.Equal(t, "", track.GetControl())
}