-
Notifications
You must be signed in to change notification settings - Fork 560
Refactor test cases to extract common helper function #3048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3048 +/- ##
=========================================
Coverage 72.58% 72.58%
Complexity 1342 1342
=========================================
Files 187 187
Lines 12648 12648
Branches 1450 1450
=========================================
Hits 9180 9180
Misses 2915 2915
Partials 553 553 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/test/java/io/anserini/StdOutStdErrRedirectableLuceneTestCase.java
Outdated
Show resolved
Hide resolved
src/test/java/io/anserini/index/IndexCollectionInovcationsTest.java
Outdated
Show resolved
Hide resolved
|
Addressed comments, thanks!
|
sahel-sh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Addresses #3042 (comment)
Previous implementation had
StdOutStdErrRedirectableLuceneTestCaseandStdOutStdErrRedirectableTestCase, one of which extendsLuceneTestCase. All but two cases can extend the Lucene version, but for the two exceptions (due to weird concurrency bugs), I had to duplicate the code that save/restores stdout/stdrr. It was either that or have two separate classes.