uber-go / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
1.81k stars 103 forks source link

fix: adds the correct matching of proto.Message types #178

Open tristanang opened 1 month ago

tristanang commented 1 month ago

Types generated by protocol buffers are incompatible with reflect.DeepEqual and needs to use proto.Equal instead. This PR modifies the matcher behavior so that proto.Equal is used if both the compared types satisfy the proto.Message interface.

CLAassistant commented 1 month ago

CLA assistant check
All committers have signed the CLA.

r-hang commented 3 days ago

I believe this duplicates https://github.com/uber-go/mock/pull/61. Is there any new information since that PR was last closed?