golang / mock

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

In version 1.6.0, the inspection of variable-length parameter functions reports an error #662

Closed pbkzsx closed 2 years ago

pbkzsx commented 2 years ago

When DoAndReturn checks the number of input parameters of the function, it does not consider the variable-length parameters, resulting in the failure of the mock variable-length parameter function. In version 1.5.0, there is no feature of checking the number of parameters, so there is no problem.