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

Support for variadic arguments in SetArgs method #49

Closed
wants to merge 2 commits into from
Closed

Support for variadic arguments in SetArgs method #49

wants to merge 2 commits into from

Conversation

djbelyak
Copy link

There is a fix for an issue #174 Support variadic pointer parameter on caller.SetArg from golang/mock repo

@CLAassistant
Copy link

CLAassistant commented Jul 31, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@tchung1118 tchung1118 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with a nit.

@@ -623,6 +623,35 @@ func TestSetArgPtr(t *testing.T) {
ctrl.Finish()
}

func TestSetArgVariadic(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: it'd be nice if there's a test case that demonstrates the actual usage of SetArg with a sample mock.

@JacobOaks JacobOaks closed this Oct 30, 2023
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.

4 participants