Skip to content

Commit 001a317

Browse files
Merge pull request #283 from erikgb/no-gofuzz
Migrate away from archived github.com/google/gofuzz
2 parents f69e7e9 + 7dfeb2a commit 001a317

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.24.2
55
require (
66
github.com/cert-manager/cert-manager v1.18.2
77
github.com/go-logr/logr v1.4.3
8-
github.com/google/gofuzz v1.2.0
98
github.com/sergi/go-diff v1.4.0
109
github.com/spf13/cobra v1.9.1
1110
github.com/spf13/pflag v1.0.7

test/integration/testdata/apis/testgroup/fuzzer/fuzzer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ limitations under the License.
1717
package fuzzer
1818

1919
import (
20-
fuzz "github.com/google/gofuzz"
2120
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
2221
"k8s.io/utils/ptr"
22+
"sigs.k8s.io/randfill"
2323

2424
"github.com/cert-manager/cmctl/v2/test/integration/testdata/apis/testgroup"
2525
)
2626

2727
// Funcs returns the fuzzer functions for the apps api group.
2828
var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
2929
return []interface{}{
30-
func(s *testgroup.TestType, c fuzz.Continue) {
31-
c.FuzzNoCustom(s) // fuzz self without calling this function again
30+
func(s *testgroup.TestType, c randfill.Continue) {
31+
c.FillNoCustom(s) // fuzz self without calling this function again
3232

3333
if s.TestFieldPtr == nil {
3434
s.TestFieldPtr = ptr.To("teststr")

0 commit comments

Comments
 (0)