mbeckerle commented on a change in pull request #539:
URL: https://github.com/apache/daffodil/pull/539#discussion_r619942124
##########
File path:
daffodil-tdml-lib/src/main/scala/org/apache/daffodil/tdml/TDMLRunner.scala
##########
@@ -837,7 +837,9 @@ case class ParserTestCase(ptc: NodeSeq, parentArg:
DFDLTestSuite)
roundTrip: RoundTrip,
implString: Option[String]) = {
- val nBits = optLengthLimitInBits.get
+ val nBits = optLengthLimitInBits.getOrElse{
+ Assert.invariantFailed("TDML tests should always have a length limit.")
Review comment:
Change to a plain
`Assert.usage(optLengthLimitInBits.isDefined)` will make the coverage error
go away.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]