bytedance / mockey

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

fix: wrong parameter value when using To/When on generic functions #40

Closed Sychorius closed 8 months ago

Sychorius commented 9 months ago

What type of PR is this?

fix

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

en: fix bug that 'When/To' hook's input value be all incorrect when mock generic functions zh: 修复在mock泛型函数时使用When/To,目标函数的入参值会全部变错误的问题