Files
go-ssh-config/fuzz_test.go
Kevin Burke c7f8dec5c7 fuzz_test: add fuzz tests
Also add a sample corpus.
2021-11-02 14:58:53 -07:00

19 lines
270 B
Go

//go:build 1.18
// +build 1.18
package ssh_config
import (
"bytes"
"testing"
)
func FuzzDecode(f *testing.F) {
f.Fuzz(func(t *testing.T, in []byte) {
_, err := Decode(bytes.NewReader(in))
if err != nil {
t.Fatalf("decode %q: %v", string(in), err)
}
})
}