bytedance / mockey

a simple and easy-to-use golang mock library
Apache License 2.0
556 stars 22 forks source link

fix: Origin(&ori) NOT works properly with struct methods #21

Closed Sychorius closed 1 year ago

Sychorius commented 1 year ago

see https://github.com/bytedance/mockey/issues/15

Change-Id: I1949762b22f78e9b84d9dec8771387f2994e94d4

What type of PR is this?

fix

What this PR does / why we need it (en: English/zh: Chinese):

en: fix bugs when using Origin on struct method https://github.com/bytedance/mockey/issues/15 zh: 修复对struct方法进行Origin时会报错的问题

Which issue(s) this PR fixes:

https://github.com/bytedance/mockey/issues/15