Test runtime.Object <-> map[string]interface{} conversion

This commit is contained in:
Wojciech Tyczynski
2016-12-29 10:07:39 +01:00
parent 39506d2219
commit 91f8dcf44a
3 changed files with 183 additions and 1 deletions

View File

@@ -518,7 +518,7 @@ const benchmarkSeed = 100
func benchmarkItems() []v1.Pod {
apiObjectFuzzer := apitesting.FuzzerFor(nil, api.SchemeGroupVersion, rand.NewSource(benchmarkSeed))
items := make([]v1.Pod, 2)
items := make([]v1.Pod, 10)
for i := range items {
var pod api.Pod
apiObjectFuzzer.Fuzz(&pod)