How to mock external methods in golang for unit testing

前端 未结 0 477
无人共我
无人共我 2020-12-01 01:20

I want to mock methods for testing in Golang. I am new to golang so I am unable to figure out any steps/pattern that is usually followed to mock.

Consider below code

相关标签:
回答
  • 消灭零回复
提交回复
热议问题