MCPcopy
hub / github.com/golang/protobuf / TestCloneNil

Function TestCloneNil

proto/proto_clone_test.go:90–95  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

88}
89
90func TestCloneNil(t *testing.T) {
91 var m *pb2.MyMessage
92 if c := proto.Clone(m); !proto.Equal(m, c) {
93 t.Errorf("Clone(%v) = %v", m, c)
94 }
95}
96
97var mergeTests = []struct {
98 src, dst, want proto.Message

Callers

nothing calls this directly

Calls 2

CloneFunction · 0.92
EqualFunction · 0.92

Tested by

no test coverage detected