-
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
feat: implement htslib basemod api #385
Conversation
Very nice and clean work! Thanks a lot! |
@johanneskoester is there anything else that needs to be done before this is merged? |
Could you run With tests passing, I'd be glad to merge this! |
Pull Request Test Coverage Report for Build 5322603414
💛 - Coveralls |
Thanks @dlaehnemann, I have updated the PR to fix the format errors (using |
The new |
A CI issue is still holding up the release of the newer version, but this should be resolved soon: |
Thanks for working on this (and for updating Cargo.toml) - let me know if you need any help from me |
Hmm, now it throws a doctest-failure:
Probably something you can quickly fix, @jts ? |
Hm, it seems doctest doesn't like having my example code snippet. I'll see if there's an easy fix, otherwise I'll take the example out. |
…b into htslib_basemod_api_rebase
Could you instead just initialize a It would be a shame not to use this doctest... |
Good idea, I didn't see that feature. PR updated |
This generally looks good, now. Would you feel comfortable and could you find the time to introduce more (doc)-tests? Not sure how accurate the coveralls report is, but it suggests 92 new code lines uncovered by tests: |
Ah, and I updated the PR with a change that the previous doctest failure suggested. So before any further changes, a resync with the remote branch probably avoids any conflicts. |
Sure, I won't be able to get to it today but will try to add some more tests tomorrow. |
@dlaehnemann I just pushed a commit to see how much of the new code it covers, I'll add more tests if needed later |
Hmm it seems that doctests aren't counted in the code coverage. Do you know whether that is the case? If so I'll write some proper tests |
It's using |
I might be misinterpreting the coveralls report but the doctest should go down one code path that is reported as uncovered. No worries though, I'll write some |
Thanks for checking this, and it's unfortunate that coveralls / tarpaulin don't seem to take the doctests into account, here. But |
I think with the current configuration of tarpaulin, doc tests aren't considered at all. |
Ah, thanks for this pointer. I was looking for info like this in the docs and didn't find it. Sounds like we might fix it by adding the |
Looking great, now! Ready to merge, @jts ? |
Yes, I think I am happy! Thanks so much for all the help getting this PR into shape. |
Well, thanks for all the work! BTW, I am now trying to get tarpaulin / coveralls to also report on the doctests, over in PR #397. |
This is a rebased implementation of the htslib basemod API that was originally in PR #374.
It relies on changes in rust-bio/hts-sys#3 which will need to be merged first, and a new release made so Cargo.toml can be updated.
cc: @johanneskoester