-
Notifications
You must be signed in to change notification settings - Fork 309
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
Adding require for Coverage Conversion and related tests #1472
Adding require for Coverage Conversion and related tests #1472
Conversation
Test PASSed. |
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.
LGTM, but please switch try/catch to intercept. Thanks @devin-petersohn!
.setEnd(2) | ||
.setScore(100) | ||
.build() | ||
try { |
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.
Use intercept[IllegalArgumentException]
instead of try/catch.
.setEnd(2) | ||
.setScore(100) | ||
.build() | ||
try { |
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.
Ditto
.setEnd(2) | ||
.setScore(100) | ||
.build() | ||
try { |
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.
Ditto.
.setStart(1) | ||
.setScore(100) | ||
.build() | ||
try { |
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.
Ditto.
.setStart(1) | ||
.setEnd(2) | ||
.build() | ||
try { |
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.
Ditto.
Test PASSed. |
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.
One small nit! Thanks @devin-petersohn!
.build() | ||
|
||
val caughtWithEmptyContigName = | ||
intercept[java.lang.IllegalArgumentException](Coverage(featureWithEmptyContigName)) |
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.
Small nit, but you shouldn't need java.lang.
in front of IllegalArgumentException
. Would you mind making the change throughout the file?
Addressing reviewer comments Addressing reviewer comments
7a6d8d9
to
690f948
Compare
Test PASSed. |
Merged! Thanks @devin-petersohn! |
Resolves #1471