-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proposed replacement for progress PR (#1302)
* Made progress logger emit read-names if it detects that the coordinates are not strictly increasing. Thanks @helgridly
- Loading branch information
Yossi Farjoun
authored
Mar 22, 2019
1 parent
16fecfc
commit 9f5d86e
Showing
5 changed files
with
75 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/scala/htsjdk/samtools/util/AbstractProgressLoggerTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package htsjdk.samtools.util | ||
|
||
import htsjdk.UnitSpec | ||
|
||
class AbstractProgressLoggerTest extends UnitSpec { | ||
|
||
"AbstractProgressLoggerTest.pad" should "pad the right amount of spaces in " in { | ||
Seq( | ||
("hello", 10, " hello"), | ||
("hello", 6, " hello"), | ||
("hello", 5, "hello"), | ||
("hello", 4, "hello"), | ||
("hello", -1, "hello")).foreach { case (in, len, expected) => | ||
AbstractProgressLogger.pad(in, len) shouldEqual expected | ||
} | ||
} | ||
} |