Bumping k8s dependencies to 1.13
This commit is contained in:
61
vendor/github.com/gogo/protobuf/test/protosize/protosize.pb.go
generated
vendored
61
vendor/github.com/gogo/protobuf/test/protosize/protosize.pb.go
generated
vendored
@@ -1,15 +1,6 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: protosize.proto
|
||||
|
||||
/*
|
||||
Package protosize is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
protosize.proto
|
||||
|
||||
It has these top-level messages:
|
||||
SizeMessage
|
||||
*/
|
||||
package protosize
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
@@ -33,17 +24,47 @@ var _ = math.Inf
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type SizeMessage struct {
|
||||
Size *int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
|
||||
ProtoSize_ *int64 `protobuf:"varint,2,opt,name=proto_size,json=protoSize" json:"proto_size,omitempty"`
|
||||
Equal_ *bool `protobuf:"varint,3,opt,name=Equal" json:"Equal,omitempty"`
|
||||
String_ *string `protobuf:"bytes,4,opt,name=String" json:"String,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
Size *int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
|
||||
ProtoSize_ *int64 `protobuf:"varint,2,opt,name=proto_size,json=protoSize" json:"proto_size,omitempty"`
|
||||
Equal_ *bool `protobuf:"varint,3,opt,name=Equal" json:"Equal,omitempty"`
|
||||
String_ *string `protobuf:"bytes,4,opt,name=String" json:"String,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SizeMessage) Reset() { *m = SizeMessage{} }
|
||||
func (m *SizeMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*SizeMessage) ProtoMessage() {}
|
||||
func (*SizeMessage) Descriptor() ([]byte, []int) { return fileDescriptorProtosize, []int{0} }
|
||||
func (m *SizeMessage) Reset() { *m = SizeMessage{} }
|
||||
func (m *SizeMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*SizeMessage) ProtoMessage() {}
|
||||
func (*SizeMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_protosize_06b2b18dea724cd1, []int{0}
|
||||
}
|
||||
func (m *SizeMessage) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *SizeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_SizeMessage.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 *SizeMessage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SizeMessage.Merge(dst, src)
|
||||
}
|
||||
func (m *SizeMessage) XXX_Size() int {
|
||||
return m.ProtoSize()
|
||||
}
|
||||
func (m *SizeMessage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SizeMessage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SizeMessage proto.InternalMessageInfo
|
||||
|
||||
func (m *SizeMessage) GetSize() int64 {
|
||||
if m != nil && m.Size != nil {
|
||||
@@ -576,9 +597,9 @@ var (
|
||||
ErrIntOverflowProtosize = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("protosize.proto", fileDescriptorProtosize) }
|
||||
func init() { proto.RegisterFile("protosize.proto", fileDescriptor_protosize_06b2b18dea724cd1) }
|
||||
|
||||
var fileDescriptorProtosize = []byte{
|
||||
var fileDescriptor_protosize_06b2b18dea724cd1 = []byte{
|
||||
// 182 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2f, 0x28, 0xca, 0x2f,
|
||||
0xc9, 0x2f, 0xce, 0xac, 0x4a, 0xd5, 0x03, 0xb3, 0x84, 0x38, 0xe1, 0x02, 0x52, 0xba, 0xe9, 0x99,
|
||||
|
52
vendor/github.com/gogo/protobuf/test/protosize/protosizepb_test.go
generated
vendored
52
vendor/github.com/gogo/protobuf/test/protosize/protosizepb_test.go
generated
vendored
@@ -1,22 +1,14 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: protosize.proto
|
||||
|
||||
/*
|
||||
Package protosize is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
protosize.proto
|
||||
|
||||
It has these top-level messages:
|
||||
SizeMessage
|
||||
*/
|
||||
package protosize
|
||||
|
||||
import testing "testing"
|
||||
import rand "math/rand"
|
||||
import math_rand "math/rand"
|
||||
import time "time"
|
||||
import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
|
||||
import github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb"
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import jsonpb "github.com/gogo/protobuf/jsonpb"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/gogo/protobuf/gogoproto"
|
||||
@@ -28,14 +20,14 @@ var _ = math.Inf
|
||||
|
||||
func TestSizeMessageProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedSizeMessage(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 := &SizeMessage{}
|
||||
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))
|
||||
@@ -53,13 +45,13 @@ func TestSizeMessageProto(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 TestSizeMessageMarshalTo(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedSizeMessage(popr, false)
|
||||
size := p.ProtoSize()
|
||||
dAtA := make([]byte, size)
|
||||
@@ -71,7 +63,7 @@ func TestSizeMessageMarshalTo(t *testing.T) {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
msg := &SizeMessage{}
|
||||
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 {
|
||||
@@ -84,15 +76,15 @@ func TestSizeMessageMarshalTo(t *testing.T) {
|
||||
|
||||
func TestSizeMessageJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedSizeMessage(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 := &SizeMessage{}
|
||||
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)
|
||||
}
|
||||
@@ -102,11 +94,11 @@ func TestSizeMessageJSON(t *testing.T) {
|
||||
}
|
||||
func TestSizeMessageProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedSizeMessage(popr, true)
|
||||
dAtA := proto.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &SizeMessage{}
|
||||
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 !p.Equal(msg) {
|
||||
@@ -116,11 +108,11 @@ func TestSizeMessageProtoText(t *testing.T) {
|
||||
|
||||
func TestSizeMessageProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedSizeMessage(popr, true)
|
||||
dAtA := proto.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &SizeMessage{}
|
||||
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 !p.Equal(msg) {
|
||||
@@ -130,10 +122,10 @@ func TestSizeMessageProtoCompactText(t *testing.T) {
|
||||
|
||||
func TestSizeMessageProtoSize(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedSizeMessage(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)
|
||||
}
|
||||
@@ -144,7 +136,7 @@ func TestSizeMessageProtoSize(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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user