Contents
- Presenting the potato code, part 1
- Using
mockgen
fromgolang/mock
//go:generate
commands for mocks generation- CI check for updated mocks, see
mocks.yml
- Testing
CutAndFry
withgolang/mock
, seepotato_test.go
part 1 - Mock calls order, see
previousCall *gomock.Call
- Comparing with
golang/mock
withmockery
, seepotato_mockery_test.go
- Presenting the potato code, part 2