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
Trying to compare two gqlerrors using either errors.Is or something like https://github.com/google/go-cmp with cmpopts.EquateErrors fails when the two errors have all the same fields, but are different structs.
What did you expect?
The comparison to succeed. Because gqlerror does not implement an Is method, it fails even though they are for all intents and purposes equal.
versions
go list -m github.com/vektah/gqlparser/v2? v2.5.1
go version? v1.19.4
The text was updated successfully, but these errors were encountered:
What happened?
Trying to compare two
gqlerror
s using eithererrors.Is
or something like https://github.com/google/go-cmp withcmpopts.EquateErrors
fails when the two errors have all the same fields, but are different structs.What did you expect?
The comparison to succeed. Because
gqlerror
does not implement anIs
method, it fails even though they are for all intents and purposes equal.versions
go list -m github.com/vektah/gqlparser/v2
?v2.5.1
go version
?v1.19.4
The text was updated successfully, but these errors were encountered: