Questions tagged [go-testing]
121 questions
-4
votes
1 answer
How to mock an inline function
I am trying to mock a function using GoMonkey, but I found it failed because compiler will be inline this function when program compiles, so GoMonkey can't mock it.
So how can I mock this function or how can I mock a other member's private…

sulingr
- 1
- 2