feat: google/mock is deprecated
parent
768395257a
commit
0dc64eb745
|
@ -703,14 +703,14 @@ internal
|
|||
</p>
|
||||
<h3>
|
||||
<a
|
||||
id="user-content-if-need-to-mock-choose-matryermoq-or-golangmock"
|
||||
id="user-content-if-need-to-mock-choose-matryermoq-or-ubermock"
|
||||
class="anchor"
|
||||
aria-hidden="true"
|
||||
href="#if-need-to-mock-choose-matryermoq-or-golangmock"
|
||||
href="#if-need-to-mock-choose-matryermoq-or-ubermock"
|
||||
><span aria-hidden="true" class="octicon octicon-link"></span></a
|
||||
>If need to mock, choose
|
||||
<a href="https://github.com/matryer/moq">matryer/moq</a> or
|
||||
<a href="https://github.com/golang/mock">golang/mock</a>
|
||||
<a href="https://github.com/uber/mock">uber/mock</a>
|
||||
</h3>
|
||||
<p>
|
||||
The first is easy to use but not powerful as the later. If you want to
|
||||
|
|
|
@ -360,7 +360,7 @@ It is easy to write a suite test, thanks to testify.
|
|||
Also, for mocking, there are many options out there.
|
||||
Pick 1 then sleep peacefully.
|
||||
|
||||
### If need to mock, choose [matryer/moq](https://github.com/matryer/moq) or [golang/mock](https://github.com/golang/mock)
|
||||
### If need to mock, choose [matryer/moq](https://github.com/matryer/moq) or [uber/mock](https://github.com/uber/mock)
|
||||
|
||||
The first is easy to use but not powerful as the later.
|
||||
If you want to make sure mock func is called with correct times, use the later.
|
||||
|
|
Loading…
Reference in New Issue