Description: disable deprecated go-fuzz based test Author: Félix Sipma Last-Update: 2023-11-11 Forwarded: not-needed --- base/strings_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/base/strings_test.go b/base/strings_test.go index c37629f..6163609 100644 --- a/base/strings_test.go +++ b/base/strings_test.go @@ -1,7 +1,6 @@ package base import ( - "fmt" "testing" ) @@ -33,20 +32,3 @@ func TestEncodeDecode(t *testing.T) { } } } - -// hook for go-fuzz: https://github.com/dvyukov/go-fuzz -func Fuzz(data []byte) int { - orig := string(data) - escaped := escape(orig) - - unescaped, err := unescape(escaped) - if err != nil { - return 0 - } - - if unescaped != orig { - panic(fmt.Sprintf("unescaped: \"%#v\", != orig: \"%#v\"", unescaped, orig)) - } - - return 1 -}