[go: up one dir, main page]

0% found this document useful (0 votes)
15 views1 page

Fuzzfail v0.2.0

The document describes a Go module named 'example.com/fuzzfail' with version v0.2.0, utilizing Go version 1.18. It includes a fuzz testing function that triggers a failure with a specific message when invoked. Additionally, it references a test data file used during the fuzz testing process.

Uploaded by

reiprompt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Fuzzfail v0.2.0

The document describes a Go module named 'example.com/fuzzfail' with version v0.2.0, utilizing Go version 1.18. It includes a fuzz testing function that triggers a failure with a specific message when invoked. Additionally, it references a test data file used during the fuzz testing process.

Uploaded by

reiprompt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

-- .

mod --
module example.com/fuzzfail

go 1.18
-- .info --
{"Version":"v0.2.0"}
-- go.mod --
module example.com/fuzzfail

go 1.18
-- fuzzfail_test.go --
package fuzzfail

import "testing"

func FuzzFail(f *testing.F) {


f.Fuzz(func(t *testing.T, b []byte) {
t.Fatalf("oops: %q", b)
})
}
--
testdata/fuzz/FuzzFail/bbb0c2d22aa1a24617301566dc7486f8b625d38024603ba62757c1124013
b49a --
go test fuzz v1
[]byte("\x05")

You might also like