mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 23:52:46 +08:00
enable errcheck
This commit is contained in:
@@ -11,10 +11,10 @@ func TestDecode(t *testing.T) {
|
||||
for _, ca := range cases {
|
||||
t.Run(ca.name, func(t *testing.T) {
|
||||
d := &Decoder{}
|
||||
d.Init()
|
||||
err := d.Init()
|
||||
require.NoError(t, err)
|
||||
|
||||
var frames [][]byte
|
||||
var err error
|
||||
|
||||
for _, pkt := range ca.pkts {
|
||||
frames, _, err = d.Decode(pkt)
|
||||
@@ -29,9 +29,9 @@ func TestDecode(t *testing.T) {
|
||||
func FuzzDecoder(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, a []byte, b []byte) {
|
||||
d := &Decoder{}
|
||||
d.Init()
|
||||
d.Init() //nolint:errcheck
|
||||
|
||||
d.Decode(&rtp.Packet{
|
||||
d.Decode(&rtp.Packet{ //nolint:errcheck
|
||||
Header: rtp.Header{
|
||||
Version: 2,
|
||||
PayloadType: 14,
|
||||
@@ -42,7 +42,7 @@ func FuzzDecoder(f *testing.F) {
|
||||
Payload: a,
|
||||
})
|
||||
|
||||
d.Decode(&rtp.Packet{
|
||||
d.Decode(&rtp.Packet{ //nolint:errcheck
|
||||
Header: rtp.Header{
|
||||
Version: 2,
|
||||
PayloadType: 14,
|
||||
|
Reference in New Issue
Block a user