Closed ReyOrtiz closed 1 month ago
unit test added
Good comments, thanks! Requested changes applied.
Ah you beat me to it, thanks! And missed that existing PR
Hello, any ETA on merging this PR?
Thanks @ReyOrtiz. This can be consumed now by gomock expats with: go get github.com/stretchr/testify@master
. Once testify v1.10 is released it can be consumed as per the README. I'll have a look at drafting a release soon.
Thanks @brackendawson for all the help! 🙏
Summary
Add helper method to declare the order of the mock calls.
Changes
InOrder(calls ...*Call)
helper method to declare the order of mock calls by callingNotBefore()
Motivation
This is probably the only feature I miss from
gomock.InOrder()
, it is more intuitive and cleaner to declare the order of the mock calls. Probably most cases can be satisfied with this method.Related issues
Closes #1639