Bumping k8s dependencies to 1.13
This commit is contained in:
72
vendor/github.com/gogo/protobuf/test/data/data.pb.go
generated
vendored
72
vendor/github.com/gogo/protobuf/test/data/data.pb.go
generated
vendored
@@ -1,15 +1,6 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: data.proto
|
||||
|
||||
/*
|
||||
Package data is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
data.proto
|
||||
|
||||
It has these top-level messages:
|
||||
MyMessage
|
||||
*/
|
||||
package data
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
@@ -17,6 +8,8 @@ import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/gogo/protobuf/gogoproto"
|
||||
|
||||
import bytes "bytes"
|
||||
|
||||
import strings "strings"
|
||||
import reflect "reflect"
|
||||
|
||||
@@ -34,12 +27,43 @@ var _ = math.Inf
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type MyMessage struct {
|
||||
MyData uint32 `protobuf:"varint,1,opt,name=my_data,json=myData,proto3" json:"my_data,omitempty"`
|
||||
MyData uint32 `protobuf:"varint,1,opt,name=my_data,json=myData,proto3" json:"my_data,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MyMessage) Reset() { *m = MyMessage{} }
|
||||
func (*MyMessage) ProtoMessage() {}
|
||||
func (*MyMessage) Descriptor() ([]byte, []int) { return fileDescriptorData, []int{0} }
|
||||
func (m *MyMessage) Reset() { *m = MyMessage{} }
|
||||
func (*MyMessage) ProtoMessage() {}
|
||||
func (*MyMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_data_ad073f7719d49453, []int{0}
|
||||
}
|
||||
func (m *MyMessage) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *MyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_MyMessage.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalTo(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (dst *MyMessage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MyMessage.Merge(dst, src)
|
||||
}
|
||||
func (m *MyMessage) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *MyMessage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MyMessage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MyMessage proto.InternalMessageInfo
|
||||
|
||||
func (m *MyMessage) GetMyData() uint32 {
|
||||
if m != nil {
|
||||
@@ -79,6 +103,9 @@ func (this *MyMessage) VerboseEqual(that interface{}) error {
|
||||
if this.MyData != that1.MyData {
|
||||
return fmt.Errorf("MyData this(%v) Not Equal that(%v)", this.MyData, that1.MyData)
|
||||
}
|
||||
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
|
||||
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (this *MyMessage) Equal(that interface{}) bool {
|
||||
@@ -103,6 +130,9 @@ func (this *MyMessage) Equal(that interface{}) bool {
|
||||
if this.MyData != that1.MyData {
|
||||
return false
|
||||
}
|
||||
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (this *MyMessage) GoString() string {
|
||||
@@ -112,6 +142,9 @@ func (this *MyMessage) GoString() string {
|
||||
s := make([]string, 0, 5)
|
||||
s = append(s, "&data.MyMessage{")
|
||||
s = append(s, "MyData: "+fmt.Sprintf("%#v", this.MyData)+",\n")
|
||||
if this.XXX_unrecognized != nil {
|
||||
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
|
||||
}
|
||||
s = append(s, "}")
|
||||
return strings.Join(s, "")
|
||||
}
|
||||
@@ -143,6 +176,9 @@ func (m *MyMessage) MarshalTo(dAtA []byte) (int, error) {
|
||||
i++
|
||||
i = encodeVarintData(dAtA, i, uint64(m.MyData))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
@@ -159,6 +195,7 @@ func NewPopulatedMyMessage(r randyData, easy bool) *MyMessage {
|
||||
this := &MyMessage{}
|
||||
this.MyData = uint32(r.Uint32())
|
||||
if !easy && r.Intn(10) != 0 {
|
||||
this.XXX_unrecognized = randUnrecognizedData(r, 2)
|
||||
}
|
||||
return this
|
||||
}
|
||||
@@ -241,6 +278,9 @@ func (m *MyMessage) Size() (n int) {
|
||||
if m.MyData != 0 {
|
||||
n += 1 + sovData(uint64(m.MyData))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -263,6 +303,7 @@ func (this *MyMessage) String() string {
|
||||
}
|
||||
s := strings.Join([]string{`&MyMessage{`,
|
||||
`MyData:` + fmt.Sprintf("%v", this.MyData) + `,`,
|
||||
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
||||
`}`,
|
||||
}, "")
|
||||
return s
|
||||
@@ -335,6 +376,7 @@ func (m *MyMessage) Unmarshal(dAtA []byte) error {
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
@@ -449,9 +491,9 @@ var (
|
||||
ErrIntOverflowData = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("data.proto", fileDescriptorData) }
|
||||
func init() { proto.RegisterFile("data.proto", fileDescriptor_data_ad073f7719d49453) }
|
||||
|
||||
var fileDescriptorData = []byte{
|
||||
var fileDescriptor_data_ad073f7719d49453 = []byte{
|
||||
// 160 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x49, 0x2c, 0x49,
|
||||
0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, 0xb1, 0xa5, 0x74, 0xd3, 0x33, 0x4b, 0x32,
|
||||
|
||||
80
vendor/github.com/gogo/protobuf/test/data/datapb_test.go
generated
vendored
80
vendor/github.com/gogo/protobuf/test/data/datapb_test.go
generated
vendored
@@ -1,24 +1,16 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: data.proto
|
||||
|
||||
/*
|
||||
Package data is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
data.proto
|
||||
|
||||
It has these top-level messages:
|
||||
MyMessage
|
||||
*/
|
||||
package data
|
||||
|
||||
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 TestMyMessageProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMyMessage(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 := &MyMessage{}
|
||||
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,13 +49,13 @@ func TestMyMessageProto(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 TestMyMessageMarshalTo(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMyMessage(popr, false)
|
||||
size := p.Size()
|
||||
dAtA := make([]byte, size)
|
||||
@@ -75,7 +67,7 @@ func TestMyMessageMarshalTo(t *testing.T) {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
msg := &MyMessage{}
|
||||
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)
|
||||
}
|
||||
for i := range dAtA {
|
||||
@@ -90,7 +82,7 @@ func TestMyMessageMarshalTo(t *testing.T) {
|
||||
}
|
||||
|
||||
func BenchmarkMyMessageProtoMarshal(b *testing.B) {
|
||||
popr := rand.New(rand.NewSource(616))
|
||||
popr := math_rand.New(math_rand.NewSource(616))
|
||||
total := 0
|
||||
pops := make([]*MyMessage, 10000)
|
||||
for i := 0; i < 10000; i++ {
|
||||
@@ -98,7 +90,7 @@ func BenchmarkMyMessageProtoMarshal(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)
|
||||
}
|
||||
@@ -108,11 +100,11 @@ func BenchmarkMyMessageProtoMarshal(b *testing.B) {
|
||||
}
|
||||
|
||||
func BenchmarkMyMessageProtoUnmarshal(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(NewPopulatedMyMessage(popr, false))
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedMyMessage(popr, false))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -122,7 +114,7 @@ func BenchmarkMyMessageProtoUnmarshal(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)
|
||||
}
|
||||
}
|
||||
@@ -131,15 +123,15 @@ func BenchmarkMyMessageProtoUnmarshal(b *testing.B) {
|
||||
|
||||
func TestMyMessageJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMyMessage(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 := &MyMessage{}
|
||||
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)
|
||||
}
|
||||
@@ -152,11 +144,11 @@ func TestMyMessageJSON(t *testing.T) {
|
||||
}
|
||||
func TestMyMessageProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMyMessage(popr, true)
|
||||
dAtA := proto.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &MyMessage{}
|
||||
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 {
|
||||
@@ -169,11 +161,11 @@ func TestMyMessageProtoText(t *testing.T) {
|
||||
|
||||
func TestMyMessageProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMyMessage(popr, true)
|
||||
dAtA := proto.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &MyMessage{}
|
||||
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 {
|
||||
@@ -185,14 +177,14 @@ func TestMyMessageProtoCompactText(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMyMessageVerboseEqual(t *testing.T) {
|
||||
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
|
||||
p := NewPopulatedMyMessage(popr, false)
|
||||
dAtA, err := proto.Marshal(p)
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
msg := &MyMessage{}
|
||||
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 {
|
||||
@@ -200,24 +192,24 @@ func TestMyMessageVerboseEqual(t *testing.T) {
|
||||
}
|
||||
}
|
||||
func TestMyMessageGoString(t *testing.T) {
|
||||
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
|
||||
p := NewPopulatedMyMessage(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 TestMyMessageSize(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMyMessage(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)
|
||||
}
|
||||
@@ -228,14 +220,14 @@ func TestMyMessageSize(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 BenchmarkMyMessageSize(b *testing.B) {
|
||||
popr := rand.New(rand.NewSource(616))
|
||||
popr := math_rand.New(math_rand.NewSource(616))
|
||||
total := 0
|
||||
pops := make([]*MyMessage, 1000)
|
||||
for i := 0; i < 1000; i++ {
|
||||
@@ -249,7 +241,7 @@ func BenchmarkMyMessageSize(b *testing.B) {
|
||||
}
|
||||
|
||||
func TestMyMessageStringer(t *testing.T) {
|
||||
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
|
||||
p := NewPopulatedMyMessage(popr, false)
|
||||
s1 := p.String()
|
||||
s2 := fmt.Sprintf("%v", p)
|
||||
|
||||
Reference in New Issue
Block a user