golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.26k stars 608 forks source link

Support for variadic arguments in SetArgs method #703

Closed djbelyak closed 8 months ago

djbelyak commented 1 year ago

This PR is addressing the one of the older issue in the repository:

174 Support variadic pointer parameter on caller.SetArg

Much appreciate to @bergotorino for his PR as an inspiration!

Taking into account previous feedback, I added tests for this case