-
Notifications
You must be signed in to change notification settings - Fork 80
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
[MRG] update Index
protocol tests to include tests for peek
and consume
#2111
Conversation
Codecov Report
@@ Coverage Diff @@
## latest #2111 +/- ##
==========================================
+ Coverage 84.30% 91.69% +7.38%
==========================================
Files 130 99 -31
Lines 15280 11002 -4278
Branches 2171 2171
==========================================
- Hits 12882 10088 -2794
+ Misses 2095 611 -1484
Partials 303 303
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Index
protocol tests to include tests for peek
and consume
Index
protocol tests to include tests for peek
and consume
…urmash-bio/sourmash into refactor/counter_gather_tests
bump @mr-eyes |
whoops, thought that I'd already asked for review 😊 @mr-eyes could you review this? it should all be functionality-neutral API changes / test refactoring. |
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.
just had the one q, otherwise looks good, i think!
Sorry, it took some time. |
thanks to both of you - I was definitely fixated on expanding the tests on this one, and not doing much with the core code, so it's nice that I paired it with #2116 which addresses your concerns 😆 |
Test, document, rationalize, and generalize the
CounterGather
API used for 'gather' optimization.The main work of this PR is to move tests specific to the
CounterGather
implementation insrc/sourmash/index/__init__.py
over to more generic protocol tests that test the API rather than the implementation. As part of this, the PR implements an additionalCounterGather
compatible class, based onLinearIndex
.The ultimate goals are to -
CounterGather
API a bit more;This PR does the following:
peek
andadd
methods to use named parameters with a*
;CounterGather
tests fromtest_index.py
intotest_index_protocol
;CounterGather
-compatible class wrapper forLinearIndex
, for testing purposes;CounterGather
class over tosearch.py
;test_counter_gather_exact_match
;Fixes #1960
Notes for review
The tests that moved from
test_index.py
totest_index_protocol.py
are unchanged functionally; it's not well represented in the diff, tho, because they moved files.TODO: