-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api/base/testing: simplify API call checkers
With the upcoming changes to command mocking, we're going to be using API call checkers quite a bit more, so simplify the API and make it a little more general. Specifically, we - integrate CheckingAPICallerMultiArgs and CheckingAPICaller into one - make NotifyingCheckingAPICaller just do notification on an APICaller implementation without mixing that with the checking logic - make the error return a part of an individual call rather than separate. - include the call count in the returned APICaller implementation rather than a separate argument.
- Loading branch information
Showing
8 changed files
with
244 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.