summaryrefslogtreecommitdiff
path: root/daemon/logger/jsonfilelog/fuzz_test.go
blob: 0a0ef000218399d12e9c7c14fbe620a34a658d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()
	})
}