Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Allow unzipping using an offset into the uncompressed and compressed … #651
Conversation
tfenne
was assigned
by nh13
Jun 25, 2016
coveralls
commented
Jun 25, 2016
tfenne
merged commit 4cd5ef9
into
master
Jun 25, 2016
tfenne
deleted the
nh_gunzipper branch
Jun 25, 2016
|
Folks, for things like this we really need tests. The htsjdk test coverage is very bad as it is and for nontrivial changes we must make sure we're making the library more tested and more robust with every pull request. This library is a key piece of so many projects. I think we should vote on a policy regarding testing non trivial changes, @droazen @yfarjoun @lbergelson wdyt? |
|
Not that I disagree with the sentiment @akiezun but I actually reviewed the coveralls report being merging this and was satisfied that all modified code was covered by existing test cases. |
|
I agree Adam that new functionality should be well tested, and where reasonable (in the eyes of the contributor), tests should be added when modifying existing code. At the moment, I would vote no to any policy as I am concerned we would do so just for the sake of a policy rather than use good judgement and contextual reasoning for what is needed for testing. I suppose if you really wanted a vote, you first have to identify those that get a vote and what their vote's relative contribution is. |
|
Thanks @nh13 and @tfenne. In this case, maybe it was a refactoring but the general point still stands. Quality of this library is important to all of us and our projects. I think we should aim to improve it with every code change and testing is paramount to quality (line coverage is really only a crutch we use to get at the actual coverage of the cases). Most code changes are of one of 3 kinds: In a) tests need to be added to demonstrate that the new feature works properly and will continue to work properly |
|
There's also On Mon, Jun 27, 2016 at 11:48 AM, Adam Kiezun notifications@github.com
|
nh13 commentedJun 25, 2016
@tfenne or @akiezun want to take a look at this? For tools that have read in one large byte array, it is more efficient to provide the whole array and offsets into the array, rather than copy subsets of the arrays and use the method without offsets.