From fedd4ba5657d9762da6dafd1db6dcccfed78c7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flc=E3=82=9B?= Date: Wed, 13 Mar 2024 22:11:45 +0800 Subject: [PATCH] refactor(helper): Adjusted the return values of some methods in `helper.Proxy` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Flcă‚› --- helper/proxy_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/proxy_test.go b/helper/proxy_test.go index e733d584..ef17b3f4 100644 --- a/helper/proxy_test.go +++ b/helper/proxy_test.go @@ -21,7 +21,7 @@ func TestProxy_Point(t *testing.T) { mock2 := proxy.Tap(func(p *proxyMock) { p.Name = "bar" p.Age = 18 - }) + }).Target() assert.Equal(t, "bar", proxy.target.Name) assert.Equal(t, 18, proxy.target.Age) assert.Equal(t, "bar", mock.Name)