go-snaps
go-snaps copied to clipboard
[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)