Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
lbergelson committed Nov 16, 2023
1 parent 8fd8e7f commit e51318e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public final class GenomicsDBImport extends GATKTool {

//executor service used when vcfInitializerThreads > 1
private ExecutorService inputPreloadExecutorService;

/**
* Get the largest interval per contig that contains the intervals specified on the command line.
* @param getIntervals intervals to be transformed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public Object[][] shuffleParameters() {

@Test(dataProvider = "shuffle")
public void testSimplePileup(boolean useShuffle) throws Exception {
final File out = createTempFile();
final File out = createTempDir();

Check warning on line 30 in src/test/java/org/broadinstitute/hellbender/tools/spark/PileupSparkIntegrationTest.java

View check run for this annotation

Codecov / codecov/patch

src/test/java/org/broadinstitute/hellbender/tools/spark/PileupSparkIntegrationTest.java#L30

Added line #L30 was not covered by tests
final ArgumentsBuilder args = new ArgumentsBuilder();
args.addRaw("--input");
args.addRaw(NA12878_20_21_WGS_bam);
Expand All @@ -47,7 +47,7 @@ public void testSimplePileup(boolean useShuffle) throws Exception {

@Test(dataProvider = "shuffle")
public void testVerbosePileup(boolean useShuffle) throws Exception {
final File out = createTempFile();
final File out = createTempDir();

Check warning on line 50 in src/test/java/org/broadinstitute/hellbender/tools/spark/PileupSparkIntegrationTest.java

View check run for this annotation

Codecov / codecov/patch

src/test/java/org/broadinstitute/hellbender/tools/spark/PileupSparkIntegrationTest.java#L50

Added line #L50 was not covered by tests
final ArgumentsBuilder args = new ArgumentsBuilder();
args.addRaw("--input");
args.addRaw(NA12878_20_21_WGS_bam);
Expand All @@ -68,7 +68,7 @@ public void testVerbosePileup(boolean useShuffle) throws Exception {

@Test(dataProvider = "shuffle")
public void testFeaturesPileup(boolean useShuffle) throws Exception {
final File out = createTempFile();
final File out = createTempDir();

Check warning on line 71 in src/test/java/org/broadinstitute/hellbender/tools/spark/PileupSparkIntegrationTest.java

View check run for this annotation

Codecov / codecov/patch

src/test/java/org/broadinstitute/hellbender/tools/spark/PileupSparkIntegrationTest.java#L71

Added line #L71 was not covered by tests
final ArgumentsBuilder args = new ArgumentsBuilder();
args.addRaw("--input");
args.addRaw(NA12878_20_21_WGS_bam);
Expand All @@ -89,7 +89,7 @@ public void testFeaturesPileup(boolean useShuffle) throws Exception {

@Test(dataProvider = "shuffle")
public void testInsertLengthPileup(boolean useShuffle) throws Exception {
final File out = createTempFile();
final File out = createTempDir();

Check warning on line 92 in src/test/java/org/broadinstitute/hellbender/tools/spark/PileupSparkIntegrationTest.java

View check run for this annotation

Codecov / codecov/patch

src/test/java/org/broadinstitute/hellbender/tools/spark/PileupSparkIntegrationTest.java#L92

Added line #L92 was not covered by tests
final ArgumentsBuilder args = new ArgumentsBuilder();
args.addRaw("--input");
args.addRaw(NA12878_20_21_WGS_bam);
Expand Down Expand Up @@ -122,7 +122,7 @@ public void testFeaturesPileupHdfs(boolean useShuffle) throws Exception {
cluster.getFileSystem().copyFromLocalFile(new Path(dbsnp_138_b37_20_21_vcf), vcfPath);
cluster.getFileSystem().copyFromLocalFile(new Path(dbsnp_138_b37_20_21_vcf + ".idx"), idxPath);

final File out = createTempFile();
final File out = createTempDir();

Check warning on line 125 in src/test/java/org/broadinstitute/hellbender/tools/spark/PileupSparkIntegrationTest.java

View check run for this annotation

Codecov / codecov/patch

src/test/java/org/broadinstitute/hellbender/tools/spark/PileupSparkIntegrationTest.java#L125

Added line #L125 was not covered by tests
final ArgumentsBuilder args = new ArgumentsBuilder();
args.addRaw("--input");
args.addRaw(NA12878_20_21_WGS_bam);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,15 @@ public static File createTempDir(final String prefix){
return IOUtils.createTempDir(prefix);
}

/**
* Creates an empty temp directory which will be deleted on exit after tests are complete
*
* @return an empty directory will be deleted after the program exits
*/
public static File createTempDir(){
return createTempDir("tmp");
}

/**
* Log this message so that it shows up inline during output as well as in html reports
*/
Expand Down

0 comments on commit e51318e

Please sign in to comment.