Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove ExtractDate.scala test coverage #64
Comments
ruebot
added
the
tests
label
Oct 2, 2017
ruebot
added this to To Do
in Test coverage
Oct 2, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Not sure what's wrong here. Looks covered to me. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
The yellow. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Some example use of |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
greebie
Oct 5, 2017
Contributor
Yup, I know. But I don't see where I can improve. All the yellow parts have test cases in https://github.com/archivesunleashed/aut/blob/3fb85e401aac1f2e6eef4ca1627a3f3428a2d8c3/src/test/scala/io/archivesunleashed/spark/matchbox/ExtractDateTest.scala
as far as I can see.
Yup, I know. But I don't see where I can improve. All the yellow parts have test cases in https://github.com/archivesunleashed/aut/blob/3fb85e401aac1f2e6eef4ca1627a3f3428a2d8c3/src/test/scala/io/archivesunleashed/spark/matchbox/ExtractDateTest.scala as far as I can see. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ruebot
Oct 5, 2017
Member
It means they are partials covered, so there something off about
ExtractDate
and the current code uses fullDate.substring
.
It means they are partials covered, so there something off about ExtractDate and the current code uses fullDate.substring .
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
greebie
Oct 5, 2017
Contributor
okay - I'll try assert(ExtractDate("20151204", YYYY) == "20151204".substring(0,4)) and see if that helps.
okay - I'll try assert(ExtractDate("20151204", YYYY) == "20151204".substring(0,4)) and see if that helps. |
greebie
referenced this issue
Oct 6, 2017
Merged
Improve Test Coverage for #55, #56, #57, #58, #59, #60, #61, #62, #63, #64 & #66 #87
added a commit
that referenced
this issue
Oct 6, 2017
greebie
referenced this issue
Dec 7, 2017
Merged
Check to replace partial coverage for ExtractDate. #144
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Fully resolved with: d2da97f |
ruebot commentedOct 2, 2017
ExtractDate.scala
test coverage can be improved.