forked from elastic/elasticsearch
-
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.
Refactored SearchStats to interface, to reduce subtle bugs in tests
The older approach with test implementations of SearchStats extending the original with an empty list lead to subtle bugs when adding more methods to SearchStats and not also adding overriding methods to the various test implementations. This refactoring forces test implementations to always implement their own versions of all methods. There was, in fact, no test implementation that actually used the underlying classes capabilities, so this was a very easy and natural move.
- Loading branch information
1 parent
4d1a5a1
commit ad6771f
Showing
6 changed files
with
371 additions
and
333 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
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.