-
Notifications
You must be signed in to change notification settings - Fork 8
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
[FIX] simplify passing file extensions to the validator #170
Conversation
Codecov Report
@@ Coverage Diff @@
## master seqan/seqan3#170 +/- ##
==========================================
+ Coverage 96.48% 96.70% +0.21%
==========================================
Files 19 19
Lines 797 789 -8
==========================================
- Hits 769 763 -6
+ Misses 28 26 -2
Continue to review full report at Codecov.
|
The relative code coverage is lower, because I deleted some lines that had been covered by tests. But I didn't introduce new uncovered lines, so I don't agree that the check fails. |
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.
I wasn't aware that seqan3::input_file_validator<seqan3::sequence_file_input<>>{}
exists. This is very cool! 😮
Yes, I agree with you! |
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.
If you are very motivated, you could add tests for the two uncovered lines in the iGenVar.cpp
. But we can also leave it as it is and merge.
Sure, I'm already thinking about these tests. The problem is that the file validator already checks the existence, writability, and file extensions of the given paths – so I cannot think of any scenario that passes the validator and fails afterwards in |
Yes you're right. Than we should maybe just take it out of the coverage with: // LCOV_EXCL_START
some code...
// LCOV_EXCL_STOP |
Okay, done! |
Currently, we manually collect valid file extensions from the different file formats. I found a simpler way to achieve this.
I found that we cannot read compressed sequence files because they are rejected by the validator, and SeqAn has already an issue for that: seqan/sharg-parser#77
Maybe we can push this issue a bit more into attention, as also other apps (like Mars) suffer from that.