MCPcopy
hub / github.com/google/go-cmp / Equal

Function Equal

cmp/internal/testprotos/protos.go:7–12  ·  view source on GitHub ↗
(x, y Message)

Source from the content-addressed store, hash-verified

5package testprotos
6
7func Equal(x, y Message) bool {
8 if x == nil || y == nil {
9 return x == nil && y == nil
10 }
11 return x.String() == y.String()
12}
13
14type Message interface {
15 Proto()

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected