Skip to content
Snippets Groups Projects
Commit deeadcca authored by bow's avatar bow
Browse files

Add test for unexpected interval file

parent 72584458
No related branches found
No related tags found
No related merge requests found
......@@ -450,4 +450,4 @@ object WipeReads extends ToolCommand {
commandArgs.filteredOutBam.map(x => prepOutBam(x, commandArgs.inputBam, writeIndex = !commandArgs.noMakeIndex))
)
}
}
}
\ No newline at end of file
......@@ -125,6 +125,13 @@ class WipeReadsUnitTest extends TestNGSuite with MockitoSugar with Matchers {
val RefFlatFile1 = new File(resourcePath("/rrna01.refFlat"))
val GtfFile1 = new File(resourcePath("/rrna01.gtf"))
@Test def testMakeIntervalFromUnknown() = {
val thrown = intercept[IllegalArgumentException] {
makeIntervalFromFile(new File("false.bam"))
}
thrown.getMessage should ===("Unexpected interval file type: false.bam")
}
@Test def testMakeIntervalFromBed() = {
val intervals: List[Interval] = makeIntervalFromFile(BedFile1)
intervals.length shouldBe 3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment