mirror of
https://github.com/distribution/distribution
synced 2025-02-17 20:39:35 +01:00
16 lines
273 B
Go
16 lines
273 B
Go
package configuration
|
|
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
)
|
|
|
|
// ParserFuzzer implements a fuzzer that targets Parser()
|
|
// nolint:deadcode
|
|
func FuzzConfigurationParse(f *testing.F) {
|
|
f.Fuzz(func(t *testing.T, data []byte) {
|
|
rd := bytes.NewReader(data)
|
|
_, _ = Parse(rd)
|
|
})
|
|
}
|