File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
2525
2626 "github.com/gogo/protobuf/proto"
2727 "github.com/google/go-cmp/cmp"
28- "sigs.k8s.io/randfill "
28+ fuzz "github.com/google/gofuzz "
2929
3030 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3131 testapigroupv1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
@@ -265,14 +265,14 @@ func (b *writeCountingBuffer) Reset() {
265265}
266266
267267func TestFuzzCollection (t * testing.T ) {
268- f := randfill .New ()
268+ f := fuzz .New ()
269269 streamingEncoder := NewSerializerWithOptions (nil , nil , SerializerOptions {StreamingCollectionsEncoding : true })
270270 streamingBuffer := & bytes.Buffer {}
271271 normalEncoder := NewSerializerWithOptions (nil , nil , SerializerOptions {StreamingCollectionsEncoding : false })
272272 normalBuffer := & bytes.Buffer {}
273273 for i := 0 ; i < 1000 ; i ++ {
274274 list := & testapigroupv1.CarpList {}
275- f .FillNoCustom (list )
275+ f .FuzzNoCustom (list )
276276 streamingBuffer .Reset ()
277277 normalBuffer .Reset ()
278278 if err := streamingEncoder .Encode (list , streamingBuffer ); err != nil {
You can’t perform that action at this time.
0 commit comments