improve coverage

This commit is contained in:
aler9
2021-08-05 18:17:59 +02:00
parent 2914af3fda
commit d8bf9b2307
11 changed files with 168 additions and 118 deletions

View File

@@ -178,15 +178,6 @@ 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 TestRTPInfoReadErrors(t *testing.T) {
for _, ca := range []struct {
name string
@@ -231,3 +222,12 @@ func TestRTPInfoReadErrors(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)
})
}
}