[Feature Request]: MatchProto
🚀 Feature Proposal
A matching function for protobuf models. There are plenty of ways to format any proto structs to string, or pass the type to the function as an option
Motivation
Proto is a very common data transport form in go. Having the ease of matching proto structs / binaries directly would significantly increase test writing productivity
Example
msg := kafkaMock.Next()
MatchProto(msg.Value)
// Or typed
MatchProto[ProtoStruct](msg.Value)
Hey 👋 Thanks for opening this issue, I am a bit sceptical (or not entirely convinced) supporting proto as they can be quite difficult to do equality checks. If I am not mistaken they contain internal structs with pointer which can cause issues. In any case I probably will have to read/investigate further in order to support something like this. But if you have something in mind please feel free to share it.