Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Small patches to custom InflaterFactory support left over from code review #794
Conversation
|
@lbergelson or @gspowley please review |
lbergelson
was assigned
by droazen
Feb 1, 2017
droazen
requested a review
from lbergelson
Feb 1, 2017
codecov-io
commented
Feb 1, 2017
•
Codecov Report@@ Coverage Diff @@
## master #794 +/- ##
===============================================
- Coverage 64.559% 64.556% -0.003%
===============================================
Files 524 524
Lines 31664 31667 +3
Branches 5415 5415
===============================================
+ Hits 20442 20443 +1
- Misses 9077 9080 +3
+ Partials 2145 2144 -1
Continue to review full report at Codecov.
|
| + {(CheckedExceptionInputStreamSupplier) () -> new BlockCompressedInputStream(new FileInputStream(tempFile), false, countingInflaterFactory), linesWritten, 4}, | ||
| + {(CheckedExceptionInputStreamSupplier) () -> new BlockCompressedInputStream(tempFile, countingInflaterFactory), linesWritten, 4}, | ||
| + {(CheckedExceptionInputStreamSupplier) () -> new AsyncBlockCompressedInputStream(tempFile, countingInflaterFactory), linesWritten, 4}, | ||
| + {(CheckedExceptionInputStreamSupplier) () -> new BlockCompressedInputStream(new URL("http://broadinstitute.github.io/picard/testdata/index_test.bam"), countingInflaterFactory), null, 21} | ||
| }; | ||
| } | ||
| @Test(dataProvider = "customInflaterInput") |
lbergelson
Feb 1, 2017
Contributor
Could you make this @Test(dataProvider = "customInflaterInput" singleThreaded = true) since it's known to be not safe.
| return new Object[][]{ | ||
| // use default InflaterFactory | ||
| - {new BlockCompressedInputStream(new FileInputStream(tempFile), false), linesWritten, 4}, |
lbergelson
Feb 1, 2017
Contributor
although, since it's creating a temp file anyway, which is probably the most dangerous part, I'm not sure how much this is actually buying you.
droazen
merged commit 34440b7
into
master
Feb 1, 2017
droazen
deleted the
dr_small_patches_to_inflaterfactory_support branch
Feb 1, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
droazen commentedFeb 1, 2017
A few remaining tweaks to the custom InflaterFactory support left over from the
final review round of #771