Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
90
func
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
97
var
mergeTests = []
struct
{
98
src, dst, want proto.Message
Callers
nothing calls this directly
Calls
2
Clone
Function · 0.92
Equal
Function · 0.92
Tested by
no test coverage detected