Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

Sychorius
Copy link
Collaborator

@Sychorius Sychorius commented Oct 8, 2023

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,目标函数的入参值会全部变错误的问题

@Sychorius Sychorius force-pushed the generic branch 2 times, most recently from 83bfd61 to d11b9e1 Compare October 9, 2023 06:59
@Sychorius Sychorius marked this pull request as ready for review October 9, 2023 07:37
internal/tool/call.go Outdated Show resolved Hide resolved
internal/monkey/patch.go Outdated Show resolved Hide resolved
mock.go Outdated Show resolved Hide resolved
Change-Id: I8cf1138d5d7964a6eeee8a8964eb8f7461cbce60
mock.go Show resolved Hide resolved
@Sychorius Sychorius merged commit 58ee2a5 into main Oct 23, 2023
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants