improve tests

This commit is contained in:
aler9
2021-04-04 20:20:29 +02:00
parent c2d5ced43b
commit 14ce8dbc45
8 changed files with 161 additions and 48 deletions

View File

@@ -178,6 +178,15 @@ func TestRTPInfoRead(t *testing.T) {
}
}
func TestRTPInfoWrite(t *testing.T) {
for _, ca := range casesRTPInfo {
t.Run(ca.name, func(t *testing.T) {
req := ca.h.Write()
require.Equal(t, ca.vout, req)
})
}
}
func TestRTPInfoReadError(t *testing.T) {
for _, ca := range []struct {
name string
@@ -199,12 +208,3 @@ func TestRTPInfoReadError(t *testing.T) {
})
}
}
func TestRTPInfoWrite(t *testing.T) {
for _, ca := range casesRTPInfo {
t.Run(ca.name, func(t *testing.T) {
req := ca.h.Write()
require.Equal(t, ca.vout, req)
})
}
}