You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As opposed to the current API implemented in testify which is more cumbersome and less intuitive with the need to declare vars and pass them inside the last chained method. #741 #1106
I didn't looked into the codebase yet to know if that's easily feasible.
But my gut feeling says it could be trivial to chain the NotBefore inside the mock.InOrder variadic function.
This issue is mostly to gather feedback.
Use case
More intuitive API.
The text was updated successfully, but these errors were encountered:
Description
Since gomock has been archived, I am switching to testify's mock pkg.
One extremely neat feature that gomock had is the
InOrder
func:https://pkg.go.dev/github.com/golang/mock/gomock#InOrder
Which allowed to very easily enforce expectation order by going from:
to
As opposed to the current API implemented in testify which is more cumbersome and less intuitive with the need to declare vars and pass them inside the last chained method.
#741
#1106
Or I guess do some kind of nesting which reverse the chronological order of events and creates nesting.
Ideally could be turned into:
Proposed solution
I didn't looked into the codebase yet to know if that's easily feasible.
But my gut feeling says it could be trivial to chain the
NotBefore
inside themock.InOrder
variadic function.This issue is mostly to gather feedback.
Use case
More intuitive API.
The text was updated successfully, but these errors were encountered: