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

@@ -0,0 +1,36 @@
package merge
import (
"testing"
"github.com/gogo/protobuf/proto"
)
func TestClone1(t *testing.T) {
f1 := &A{}
proto.Clone(f1)
}
func TestMerge1(t *testing.T) {
f1 := &A{}
f2 := &A{}
proto.Merge(f1, f2)
}
func TestMerge2(t *testing.T) {
f1 := &A{B: B{C: 1}}
f2 := &A{}
proto.Merge(f1, f2)
if f1.B.C != 1 {
t.Fatalf("got %d want %d", f1.B.C, 1)
}
}
func TestMerge3(t *testing.T) {
f1 := &A{}
f2 := &A{B: B{C: 1}}
proto.Merge(f1, f2)
if f1.B.C != 1 {
t.Fatalf("got %d want %d", f1.B.C, 1)
}
}