mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Signed-off-by: AdamKorcz <adam@adalogics.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
22 lines
351 B
Go
22 lines
351 B
Go
package jsonlog
|
|
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
|
|
fuzz "github.com/AdaLogics/go-fuzz-headers"
|
|
)
|
|
|
|
func FuzzJSONLogsMarshalJSONBuf(f *testing.F) {
|
|
f.Fuzz(func(t *testing.T, data []byte) {
|
|
ff := fuzz.NewConsumer(data)
|
|
l := &JSONLogs{}
|
|
err := ff.GenerateStruct(l)
|
|
if err != nil {
|
|
return
|
|
}
|
|
var buf bytes.Buffer
|
|
l.MarshalJSONBuf(&buf)
|
|
})
|
|
}
|