Skip to content

Commit

Permalink
fix handling options
Browse files Browse the repository at this point in the history
  • Loading branch information
bayashi committed Jan 17, 2025
1 parent 5c4f8fd commit 7a2f13e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assert_cmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ func (a *testingA) CmpProto(t *testing.T, testNames ...string) *testingA {
a.t = t
a.t.Helper()

a = a.CmpOpt(protocmp.IgnoreUnknown())
a = a.CmpOpt(protocmp.Transform())

if diff := cmp.Diff(a.expect, a.got, protocmp.Transform()); diff != "" {
if diff := cmp.Diff(a.expect, a.got, a.cmpOpts...); diff != "" {
return a.fail(reportForSame(a).Message("Diff details", diff), reason_NotSame)
}

Expand Down

0 comments on commit 7a2f13e

Please sign in to comment.