Bumping k8s dependencies to 1.13
This commit is contained in:
67
vendor/github.com/gogo/protobuf/test/issue330/issue330.pb.go
generated
vendored
67
vendor/github.com/gogo/protobuf/test/issue330/issue330.pb.go
generated
vendored
@@ -1,15 +1,6 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: issue330.proto
|
||||
|
||||
/*
|
||||
Package issue330 is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
issue330.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Object
|
||||
*/
|
||||
package issue330
|
||||
|
||||
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 io "io"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -31,13 +24,44 @@ var _ = math.Inf
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Object struct {
|
||||
Type TypeIdentifier `protobuf:"varint,1,opt,name=type,proto3,casttype=TypeIdentifier" json:"type,omitempty"`
|
||||
Type TypeIdentifier `protobuf:"varint,1,opt,name=type,proto3,casttype=TypeIdentifier" json:"type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Object) Reset() { *m = Object{} }
|
||||
func (m *Object) String() string { return proto.CompactTextString(m) }
|
||||
func (*Object) ProtoMessage() {}
|
||||
func (*Object) Descriptor() ([]byte, []int) { return fileDescriptorIssue330, []int{0} }
|
||||
func (m *Object) Reset() { *m = Object{} }
|
||||
func (m *Object) String() string { return proto.CompactTextString(m) }
|
||||
func (*Object) ProtoMessage() {}
|
||||
func (*Object) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_issue330_8ac709e024292525, []int{0}
|
||||
}
|
||||
func (m *Object) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *Object) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_Object.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 *Object) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Object.Merge(dst, src)
|
||||
}
|
||||
func (m *Object) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *Object) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Object.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Object proto.InternalMessageInfo
|
||||
|
||||
func (m *Object) GetType() TypeIdentifier {
|
||||
if m != nil {
|
||||
@@ -71,6 +95,9 @@ func (this *Object) Equal(that interface{}) bool {
|
||||
if this.Type != that1.Type {
|
||||
return false
|
||||
}
|
||||
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (m *Object) Marshal() (dAtA []byte, err error) {
|
||||
@@ -93,6 +120,9 @@ func (m *Object) MarshalTo(dAtA []byte) (int, error) {
|
||||
i++
|
||||
i = encodeVarintIssue330(dAtA, i, uint64(m.Type))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
|
||||
@@ -109,6 +139,7 @@ func NewPopulatedObject(r randyIssue330, easy bool) *Object {
|
||||
this := &Object{}
|
||||
this.Type = TypeIdentifier(r.Uint32())
|
||||
if !easy && r.Intn(10) != 0 {
|
||||
this.XXX_unrecognized = randUnrecognizedIssue330(r, 2)
|
||||
}
|
||||
return this
|
||||
}
|
||||
@@ -191,6 +222,9 @@ func (m *Object) Size() (n int) {
|
||||
if m.Type != 0 {
|
||||
n += 1 + sovIssue330(uint64(m.Type))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -267,6 +301,7 @@ func (m *Object) Unmarshal(dAtA []byte) error {
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
@@ -381,9 +416,9 @@ var (
|
||||
ErrIntOverflowIssue330 = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("issue330.proto", fileDescriptorIssue330) }
|
||||
func init() { proto.RegisterFile("issue330.proto", fileDescriptor_issue330_8ac709e024292525) }
|
||||
|
||||
var fileDescriptorIssue330 = []byte{
|
||||
var fileDescriptor_issue330_8ac709e024292525 = []byte{
|
||||
// 158 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x2c, 0x2e, 0x2e,
|
||||
0x4d, 0x35, 0x36, 0x36, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0xa5, 0x74,
|
||||
|
||||
64
vendor/github.com/gogo/protobuf/test/issue330/issue330pb_test.go
generated
vendored
64
vendor/github.com/gogo/protobuf/test/issue330/issue330pb_test.go
generated
vendored
@@ -1,22 +1,14 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: issue330.proto
|
||||
|
||||
/*
|
||||
Package issue330 is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
issue330.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Object
|
||||
*/
|
||||
package issue330
|
||||
|
||||
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 TestObjectProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedObject(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 := &Object{}
|
||||
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 TestObjectProto(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 TestObjectMarshalTo(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedObject(popr, false)
|
||||
size := p.Size()
|
||||
dAtA := make([]byte, size)
|
||||
@@ -71,7 +63,7 @@ func TestObjectMarshalTo(t *testing.T) {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
msg := &Object{}
|
||||
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 {
|
||||
@@ -83,7 +75,7 @@ func TestObjectMarshalTo(t *testing.T) {
|
||||
}
|
||||
|
||||
func BenchmarkObjectProtoMarshal(b *testing.B) {
|
||||
popr := rand.New(rand.NewSource(616))
|
||||
popr := math_rand.New(math_rand.NewSource(616))
|
||||
total := 0
|
||||
pops := make([]*Object, 10000)
|
||||
for i := 0; i < 10000; i++ {
|
||||
@@ -91,7 +83,7 @@ func BenchmarkObjectProtoMarshal(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)
|
||||
}
|
||||
@@ -101,11 +93,11 @@ func BenchmarkObjectProtoMarshal(b *testing.B) {
|
||||
}
|
||||
|
||||
func BenchmarkObjectProtoUnmarshal(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(NewPopulatedObject(popr, false))
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedObject(popr, false))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -115,7 +107,7 @@ func BenchmarkObjectProtoUnmarshal(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)
|
||||
}
|
||||
}
|
||||
@@ -124,15 +116,15 @@ func BenchmarkObjectProtoUnmarshal(b *testing.B) {
|
||||
|
||||
func TestObjectJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedObject(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 := &Object{}
|
||||
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)
|
||||
}
|
||||
@@ -142,11 +134,11 @@ func TestObjectJSON(t *testing.T) {
|
||||
}
|
||||
func TestObjectProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedObject(popr, true)
|
||||
dAtA := proto.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &Object{}
|
||||
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) {
|
||||
@@ -156,11 +148,11 @@ func TestObjectProtoText(t *testing.T) {
|
||||
|
||||
func TestObjectProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedObject(popr, true)
|
||||
dAtA := proto.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &Object{}
|
||||
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) {
|
||||
@@ -170,10 +162,10 @@ func TestObjectProtoCompactText(t *testing.T) {
|
||||
|
||||
func TestObjectSize(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedObject(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)
|
||||
}
|
||||
@@ -184,14 +176,14 @@ func TestObjectSize(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 BenchmarkObjectSize(b *testing.B) {
|
||||
popr := rand.New(rand.NewSource(616))
|
||||
popr := math_rand.New(math_rand.NewSource(616))
|
||||
total := 0
|
||||
pops := make([]*Object, 1000)
|
||||
for i := 0; i < 1000; i++ {
|
||||
|
||||
Reference in New Issue
Block a user