You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried adding ignore/filter options to cmp.Diff but it appears that the copy may always occur and ignore just silences the field/message diff in the output.
I feel like I'm missing something. Any tips appreciated!
The text was updated successfully, but these errors were encountered:
I'm comparing protos from the github.com/google/fhir library. For example:
https://raw.githubusercontent.com/google/fhir/master/go/proto/google/fhir/proto/r4/core/datatypes_go_proto/datatypes.pb.go
These protos include a
MessageState
field with theDoNotCopy
pragma (context).I have unit test code comparing protos similar to the following:
This builds and tests successfully but
go vet
complains:I've tried adding ignore/filter options to
cmp.Diff
but it appears that the copy may always occur and ignore just silences the field/message diff in the output.I feel like I'm missing something. Any tips appreciated!
The text was updated successfully, but these errors were encountered: