Why have both a return-value and a side-effect when raising an error for a mock?

后端 未结 0 1654
走了就别回头了
走了就别回头了 2021-01-18 22:13

A while back I found the following solution-pattern here on StackOverflow for raising an error from a mocked function (I cannot find the original link anymore, sorry):

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