From 7a2f13e066cf96ff2b94be80a85fa79c22a201a7 Mon Sep 17 00:00:00 2001 From: bayashi <42190+bayashi@users.noreply.github.com> Date: Fri, 17 Jan 2025 22:06:20 +0000 Subject: [PATCH] fix handling options --- assert_cmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assert_cmp.go b/assert_cmp.go index b97cc16..96f95f0 100644 --- a/assert_cmp.go +++ b/assert_cmp.go @@ -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) }