Bumping k8s dependencies to 1.13

This commit is contained in:
Cheng Xing
2018-11-16 14:08:25 -08:00
parent 305407125c
commit b4c0b68ec7
8002 changed files with 884099 additions and 276228 deletions

View File

@@ -1,24 +1,16 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: file.dot.proto
/*
Package filedotname is a generated protocol buffer package.
It is generated from these files:
file.dot.proto
It has these top-level messages:
M
*/
package filedotname
import testing "testing"
import rand "math/rand"
import math_rand "math/rand"
import time "time"
import proto "github.com/gogo/protobuf/proto"
import jsonpb "github.com/gogo/protobuf/jsonpb"
import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
import github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb"
import fmt "fmt"
import parser "go/parser"
import go_parser "go/parser"
import proto "github.com/gogo/protobuf/proto"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
@@ -29,14 +21,14 @@ var _ = math.Inf
func TestMProto(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedM(popr, false)
dAtA, err := proto.Marshal(p)
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &M{}
if err := proto.Unmarshal(dAtA, msg); err != nil {
if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
littlefuzz := make([]byte, len(dAtA))
@@ -57,12 +49,12 @@ func TestMProto(t *testing.T) {
littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
}
// shouldn't panic
_ = proto.Unmarshal(littlefuzz, msg)
_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
}
}
func BenchmarkMProtoMarshal(b *testing.B) {
popr := rand.New(rand.NewSource(616))
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*M, 10000)
for i := 0; i < 10000; i++ {
@@ -70,7 +62,7 @@ func BenchmarkMProtoMarshal(b *testing.B) {
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
dAtA, err := proto.Marshal(pops[i%10000])
dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000])
if err != nil {
panic(err)
}
@@ -80,11 +72,11 @@ func BenchmarkMProtoMarshal(b *testing.B) {
}
func BenchmarkMProtoUnmarshal(b *testing.B) {
popr := rand.New(rand.NewSource(616))
popr := math_rand.New(math_rand.NewSource(616))
total := 0
datas := make([][]byte, 10000)
for i := 0; i < 10000; i++ {
dAtA, err := proto.Marshal(NewPopulatedM(popr, false))
dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedM(popr, false))
if err != nil {
panic(err)
}
@@ -94,7 +86,7 @@ func BenchmarkMProtoUnmarshal(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
total += len(datas[i%10000])
if err := proto.Unmarshal(datas[i%10000], msg); err != nil {
if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil {
panic(err)
}
}
@@ -103,15 +95,15 @@ func BenchmarkMProtoUnmarshal(b *testing.B) {
func TestMJSON(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedM(popr, true)
marshaler := jsonpb.Marshaler{}
marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
jsondata, err := marshaler.MarshalToString(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &M{}
err = jsonpb.UnmarshalString(jsondata, msg)
err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
@@ -124,11 +116,11 @@ func TestMJSON(t *testing.T) {
}
func TestMProtoText(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedM(popr, true)
dAtA := proto.MarshalTextString(p)
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
msg := &M{}
if err := proto.UnmarshalText(dAtA, msg); err != nil {
if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
@@ -141,11 +133,11 @@ func TestMProtoText(t *testing.T) {
func TestMProtoCompactText(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedM(popr, true)
dAtA := proto.CompactTextString(p)
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
msg := &M{}
if err := proto.UnmarshalText(dAtA, msg); err != nil {
if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
@@ -160,14 +152,14 @@ func TestFileDotDescription(t *testing.T) {
FileDotDescription()
}
func TestMVerboseEqual(t *testing.T) {
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedM(popr, false)
dAtA, err := proto.Marshal(p)
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
panic(err)
}
msg := &M{}
if err := proto.Unmarshal(dAtA, msg); err != nil {
if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
panic(err)
}
if err := p.VerboseEqual(msg); err != nil {
@@ -175,7 +167,7 @@ func TestMVerboseEqual(t *testing.T) {
}
}
func TestMFace(t *testing.T) {
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedM(popr, true)
msg := p.TestProto()
if !p.Equal(msg) {
@@ -183,24 +175,24 @@ func TestMFace(t *testing.T) {
}
}
func TestMGoString(t *testing.T) {
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedM(popr, false)
s1 := p.GoString()
s2 := fmt.Sprintf("%#v", p)
if s1 != s2 {
t.Fatalf("GoString want %v got %v", s1, s2)
}
_, err := parser.ParseExpr(s1)
_, err := go_parser.ParseExpr(s1)
if err != nil {
t.Fatal(err)
}
}
func TestMSize(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedM(popr, true)
size2 := proto.Size(p)
dAtA, err := proto.Marshal(p)
size2 := github_com_gogo_protobuf_proto.Size(p)
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
@@ -211,14 +203,14 @@ func TestMSize(t *testing.T) {
if size2 != size {
t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2)
}
size3 := proto.Size(p)
size3 := github_com_gogo_protobuf_proto.Size(p)
if size3 != size {
t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3)
}
}
func BenchmarkMSize(b *testing.B) {
popr := rand.New(rand.NewSource(616))
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*M, 1000)
for i := 0; i < 1000; i++ {
@@ -232,7 +224,7 @@ func BenchmarkMSize(b *testing.B) {
}
func TestMStringer(t *testing.T) {
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedM(popr, false)
s1 := p.String()
s2 := fmt.Sprintf("%v", p)