moby/daemon/logger/jsonfilelog/fuzz_test.go
AdamKorcz 93fa093122
testing: move fuzzers over from OSS-Fuzz
Signed-off-by: AdamKorcz <adam@adalogics.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-11-30 17:31:03 +01:00

15 lines
225 B
Go

package jsonfilelog
import (
"bytes"
"testing"
)
func FuzzLoggerDecode(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
dec := decodeFunc(bytes.NewBuffer(data))
defer dec.Close()
_, _ = dec.Decode()
})
}