petergtz / pegomock

Pegomock is a powerful, yet simple mocking framework for the Go programming language
Apache License 2.0
252 stars 28 forks source link

pegomock generated code cannot use `result` and `params` method args which conflicts with generated code variable #123

Closed krrrr38 closed 1 year ago

krrrr38 commented 1 year ago

Problem

pegomock generate code use result and params as new variables. If method use these variables as method args, generated code cannot be built by conflicting.

image

workaround