Switch to new external fuzz package

This commit is contained in:
Daniel Smith
2014-08-08 15:45:51 -07:00
parent a0e9cf575f
commit 079c9043bd
5 changed files with 33 additions and 555 deletions

View File

@@ -21,7 +21,7 @@ import (
"reflect"
"testing"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/google/gofuzz"
)
func TestConverter_CallsRegisteredFunctions(t *testing.T) {
@@ -95,7 +95,7 @@ func TestConverter_fuzz(t *testing.T) {
{newAnonType(), &TestType1{}, newAnonType()},
}
f := util.NewFuzzer()
f := fuzz.New().NilChance(.5).NumElements(0, 100)
c := NewConverter()
for i, item := range table {
@@ -189,7 +189,7 @@ func TestConverter_flags(t *testing.T) {
shouldSucceed: true,
},
}
f := util.NewFuzzer()
f := fuzz.New().NilChance(.5).NumElements(0, 100)
c := NewConverter()
for i, item := range table {