-
Notifications
You must be signed in to change notification settings - Fork 244
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
CRAM: some structure test cleanup #1312
Conversation
git diffs are a mess, so it's probably easiest to view the whole files locally. |
Codecov Report
@@ Coverage Diff @@
## master #1312 +/- ##
==============================================
+ Coverage 67.75% 67.756% +0.006%
- Complexity 8235 8236 +1
==============================================
Files 562 562
Lines 33538 33538
Branches 5636 5636
==============================================
+ Hits 22722 22724 +2
+ Misses 8634 8632 -2
Partials 2182 2182
|
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.
A couple of minor comments, but overall this looks really good. Thx.
src/test/java/htsjdk/samtools/cram/build/ContainerFactoryTest.java
Outdated
Show resolved
Hide resolved
|
||
final int slice2AlignmentStart = 20; | ||
final int slice2AlignmentSpan = 20; | ||
final Slice slice2 = new Slice(mappedReferenceContext); |
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.
Minor suggestion to improve the readability of the code below: use mappedSlice
as a prefix for these variables.
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.
ok
new Slice(ReferenceContext.UNMAPPED_UNPLACED_CONTEXT), | ||
new Slice(ReferenceContext.MULTIPLE_REFERENCE_CONTEXT) | ||
}, | ||
}; |
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.
Very nice.
- ContainerTest, ContainerFactoryTest, ContainerParserTest, SliceTests, and CRAMBAIIndexerTest
eb5d0a0
to
cb6c6a3
Compare
Move common code from ContainerTest, ContainerFactoryTest, ContainerParserTest, SliceTests, CRAMBAIIndexerTest, and CramCompressionRecordUtil into new CRAMStructureTestUtil
Description
Test cleanup, as requested
Checklist