-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add typed test to kmer_hash #1722
Conversation
97bed7d
to
71dd793
Compare
Codecov Report
@@ Coverage Diff @@
## master #1722 +/- ##
==========================================
- Coverage 97.66% 97.62% -0.05%
==========================================
Files 239 239
Lines 9089 9062 -27
==========================================
- Hits 8877 8847 -30
- Misses 212 215 +3
Continue to review full report at Codecov.
|
@marehr When you review, can you also take a look at the code coverage test failure? I don't understand, why the coverage drops in take_until... I am using it as it was used before. |
@marehr polite ping |
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.
Sorry for the late review. I must somehow marked it as read in https://github.com/notifications.
@marehr I have now made all tests typed tests, only the tests based on previous issues are not typed tests. I am not sure, if it makes sense for the issue_tests to be typed as well. I have not made an extra test for testing the combined_with_other_views when using the stop_at_thymine view, because that would have added only one test case for gapped and ungapped, while adding more lines. So I put them in the combined_with_container tests for a shorter code, I hope that is okay. |
cc81e1a
to
19ee553
Compare
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 some reminders for me; We should meet up and talk this over in Person :)
result_t gapped4{gapped2}; | ||
static constexpr auto ungapped_view = seqan3::views::kmer_hash(seqan3::ungapped{3}); | ||
static constexpr auto gapped_view = seqan3::views::kmer_hash(0b101_shape); | ||
static constexpr auto prefix_until_first_thymine = seqan3::views::take_until([] (seqan3::dna4 x) |
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.
maybe put that into the type test class kmer_hash_properties_test
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.
You wrote me that you couldn't make this work. Since these are view adaptors, it is fine for me to put them here.
I'm wondering why TestFixture::ungapped_view
wasn't working.
a03b0a8
to
fabd880
Compare
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.
Looks fine;
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.
Only two small things.
Also, since this PR does two things if I understand correctly (Fixing a bug and restructuring the test) can you rebase your changes into 2 commits, one for the restructuring and one for the bug?
abed13c
to
d12333c
Compare
2d14c6e
to
81c330e
Compare
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.
You can rebase on the current master now and use the EXPECT_RANGE_EQ
(see #1764 for examples) and then the Jenkins error should go away.
Then we can merge this.
81c330e
to
8258b11
Compare
8258b11
to
77a58f6
Compare
77a58f6
to
8cd8edd
Compare
Add a typed_test to kmer_hash to reduce code lines, while testing more. Found and solves the bug #1719.