You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the _ is left out of the definition, Mockery is able to create variable names, eg:
func (_m *Example) Example(_a0 int) int {
...
}
Considering there can be various reasons the source code must use _ (eg the code itself is generated), could Mockery create variable names when it detects _ as a parameter name?
The text was updated successfully, but these errors were encountered:
Given:
Mockery will generate:
If the
_
is left out of the definition, Mockery is able to create variable names, eg:Considering there can be various reasons the source code must use
_
(eg the code itself is generated), could Mockery create variable names when it detects_
as a parameter name?The text was updated successfully, but these errors were encountered: