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 (
25
25
26
26
"github.com/gogo/protobuf/proto"
27
27
"github.com/google/go-cmp/cmp"
28
- "sigs.k8s.io/randfill "
28
+ fuzz "github.com/google/gofuzz "
29
29
30
30
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
31
31
testapigroupv1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
@@ -265,14 +265,14 @@ func (b *writeCountingBuffer) Reset() {
265
265
}
266
266
267
267
func TestFuzzCollection (t * testing.T ) {
268
- f := randfill .New ()
268
+ f := fuzz .New ()
269
269
streamingEncoder := NewSerializerWithOptions (nil , nil , SerializerOptions {StreamingCollectionsEncoding : true })
270
270
streamingBuffer := & bytes.Buffer {}
271
271
normalEncoder := NewSerializerWithOptions (nil , nil , SerializerOptions {StreamingCollectionsEncoding : false })
272
272
normalBuffer := & bytes.Buffer {}
273
273
for i := 0 ; i < 1000 ; i ++ {
274
274
list := & testapigroupv1.CarpList {}
275
- f .FillNoCustom (list )
275
+ f .FuzzNoCustom (list )
276
276
streamingBuffer .Reset ()
277
277
normalBuffer .Reset ()
278
278
if err := streamingEncoder .Encode (list , streamingBuffer ); err != nil {
You can’t perform that action at this time.
0 commit comments