Improve rtcp.TestUnmarshal to improve coverage

* Test polymorphic RTCP packet parser
* Add tests for more Unmarshal methods
Relates to #119
This commit is contained in:
Woodrow Douglass
2018-11-28 11:07:04 -05:00
committed by Max Hawkins
parent de6e6a63bc
commit af1b2c9520
3 changed files with 81 additions and 17 deletions

View File

@@ -55,7 +55,7 @@ func (p *RapidResynchronizationRequest) Unmarshal(rawPacket []byte) error {
return err
}
if h.Type != TypeTransportSpecificFeedback || h.Count != 1 {
if h.Type != TypeTransportSpecificFeedback || h.Count != rrrFMT {
return errWrongType
}