Bumping k8s dependencies to 1.13
This commit is contained in:
145
vendor/github.com/gogo/protobuf/test/enumstringer/enumstringerpb_test.go
generated
vendored
145
vendor/github.com/gogo/protobuf/test/enumstringer/enumstringerpb_test.go
generated
vendored
@@ -1,25 +1,14 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: enumstringer.proto
|
||||
|
||||
/*
|
||||
Package enumstringer is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
enumstringer.proto
|
||||
|
||||
It has these top-level messages:
|
||||
NidOptEnum
|
||||
NinOptEnum
|
||||
NidRepEnum
|
||||
NinRepEnum
|
||||
*/
|
||||
package enumstringer
|
||||
|
||||
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"
|
||||
@@ -31,14 +20,14 @@ var _ = math.Inf
|
||||
|
||||
func TestNidOptEnumProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNidOptEnum(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 := &NidOptEnum{}
|
||||
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))
|
||||
@@ -59,20 +48,20 @@ func TestNidOptEnumProto(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 TestNinOptEnumProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNinOptEnum(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 := &NinOptEnum{}
|
||||
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))
|
||||
@@ -93,20 +82,20 @@ func TestNinOptEnumProto(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 TestNidRepEnumProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNidRepEnum(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 := &NidRepEnum{}
|
||||
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))
|
||||
@@ -127,20 +116,20 @@ func TestNidRepEnumProto(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 TestNinRepEnumProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNinRepEnum(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 := &NinRepEnum{}
|
||||
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))
|
||||
@@ -161,21 +150,21 @@ func TestNinRepEnumProto(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 TestNidOptEnumJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNidOptEnum(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 := &NidOptEnum{}
|
||||
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)
|
||||
}
|
||||
@@ -188,15 +177,15 @@ func TestNidOptEnumJSON(t *testing.T) {
|
||||
}
|
||||
func TestNinOptEnumJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNinOptEnum(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 := &NinOptEnum{}
|
||||
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)
|
||||
}
|
||||
@@ -209,15 +198,15 @@ func TestNinOptEnumJSON(t *testing.T) {
|
||||
}
|
||||
func TestNidRepEnumJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNidRepEnum(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 := &NidRepEnum{}
|
||||
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)
|
||||
}
|
||||
@@ -230,15 +219,15 @@ func TestNidRepEnumJSON(t *testing.T) {
|
||||
}
|
||||
func TestNinRepEnumJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNinRepEnum(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 := &NinRepEnum{}
|
||||
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)
|
||||
}
|
||||
@@ -251,11 +240,11 @@ func TestNinRepEnumJSON(t *testing.T) {
|
||||
}
|
||||
func TestNidOptEnumProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNidOptEnum(popr, true)
|
||||
dAtA := proto.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &NidOptEnum{}
|
||||
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 {
|
||||
@@ -268,11 +257,11 @@ func TestNidOptEnumProtoText(t *testing.T) {
|
||||
|
||||
func TestNidOptEnumProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNidOptEnum(popr, true)
|
||||
dAtA := proto.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &NidOptEnum{}
|
||||
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 {
|
||||
@@ -285,11 +274,11 @@ func TestNidOptEnumProtoCompactText(t *testing.T) {
|
||||
|
||||
func TestNinOptEnumProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNinOptEnum(popr, true)
|
||||
dAtA := proto.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &NinOptEnum{}
|
||||
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 {
|
||||
@@ -302,11 +291,11 @@ func TestNinOptEnumProtoText(t *testing.T) {
|
||||
|
||||
func TestNinOptEnumProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNinOptEnum(popr, true)
|
||||
dAtA := proto.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &NinOptEnum{}
|
||||
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 {
|
||||
@@ -319,11 +308,11 @@ func TestNinOptEnumProtoCompactText(t *testing.T) {
|
||||
|
||||
func TestNidRepEnumProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNidRepEnum(popr, true)
|
||||
dAtA := proto.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &NidRepEnum{}
|
||||
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 {
|
||||
@@ -336,11 +325,11 @@ func TestNidRepEnumProtoText(t *testing.T) {
|
||||
|
||||
func TestNidRepEnumProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNidRepEnum(popr, true)
|
||||
dAtA := proto.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &NidRepEnum{}
|
||||
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 {
|
||||
@@ -353,11 +342,11 @@ func TestNidRepEnumProtoCompactText(t *testing.T) {
|
||||
|
||||
func TestNinRepEnumProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNinRepEnum(popr, true)
|
||||
dAtA := proto.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &NinRepEnum{}
|
||||
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 {
|
||||
@@ -370,11 +359,11 @@ func TestNinRepEnumProtoText(t *testing.T) {
|
||||
|
||||
func TestNinRepEnumProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedNinRepEnum(popr, true)
|
||||
dAtA := proto.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &NinRepEnum{}
|
||||
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 {
|
||||
@@ -386,14 +375,14 @@ func TestNinRepEnumProtoCompactText(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestNidOptEnumVerboseEqual(t *testing.T) {
|
||||
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
|
||||
p := NewPopulatedNidOptEnum(popr, false)
|
||||
dAtA, err := proto.Marshal(p)
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
msg := &NidOptEnum{}
|
||||
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 {
|
||||
@@ -401,14 +390,14 @@ func TestNidOptEnumVerboseEqual(t *testing.T) {
|
||||
}
|
||||
}
|
||||
func TestNinOptEnumVerboseEqual(t *testing.T) {
|
||||
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
|
||||
p := NewPopulatedNinOptEnum(popr, false)
|
||||
dAtA, err := proto.Marshal(p)
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
msg := &NinOptEnum{}
|
||||
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 {
|
||||
@@ -416,14 +405,14 @@ func TestNinOptEnumVerboseEqual(t *testing.T) {
|
||||
}
|
||||
}
|
||||
func TestNidRepEnumVerboseEqual(t *testing.T) {
|
||||
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
|
||||
p := NewPopulatedNidRepEnum(popr, false)
|
||||
dAtA, err := proto.Marshal(p)
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
msg := &NidRepEnum{}
|
||||
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 {
|
||||
@@ -431,14 +420,14 @@ func TestNidRepEnumVerboseEqual(t *testing.T) {
|
||||
}
|
||||
}
|
||||
func TestNinRepEnumVerboseEqual(t *testing.T) {
|
||||
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
|
||||
p := NewPopulatedNinRepEnum(popr, false)
|
||||
dAtA, err := proto.Marshal(p)
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
msg := &NinRepEnum{}
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user