@@ -1288,7 +1288,7 @@ class Main(
1288
1288
if (loc.bitLimit0b.isDefined) {
1289
1289
(loc.bitLimit0b.get - loc.bitPos0b).toString
1290
1290
} else {
1291
- " at least " + (inStream.inputSource.knownBytesAvailable * 8 )
1291
+ " at least " + (inStream.inputSource.knownBytesAvailable() * 8 )
1292
1292
}
1293
1293
Logger .log.error(
1294
1294
s " Left over data after consuming 0 bits while streaming. Stopped after consuming ${loc.bitPos0b} bit(s) with ${remainingBits} bit(s) remaining. "
@@ -1309,7 +1309,7 @@ class Main(
1309
1309
val bitsAlreadyConsumed = (loc.bitPos0b % 8 ).toInt
1310
1310
val firstByteString = if (bitsAlreadyConsumed != 0 ) {
1311
1311
val bitsToDisplay = 8 - bitsAlreadyConsumed
1312
- val pbp = inStream.inputSource.position + 1
1312
+ val pbp = inStream.inputSource.position() + 1
1313
1313
val firstByteBitArray = inStream.getByteArray(bitsToDisplay, finfo)
1314
1314
val fbs = firstByteBitArray(0 ).toBinaryString
1315
1315
.takeRight(8 )
@@ -1325,8 +1325,8 @@ class Main(
1325
1325
f " \n Left over data starts with partial byte. Left over data (Binary) at byte $pbp is: (0b $bits) "
1326
1326
dumpString
1327
1327
} else " "
1328
- val curBytePosition1b = inStream.inputSource.position + 1
1329
- val bytesAvailable = inStream.inputSource.knownBytesAvailable
1328
+ val curBytePosition1b = inStream.inputSource.position() + 1
1329
+ val bytesAvailable = inStream.inputSource.knownBytesAvailable()
1330
1330
val bytesLimit = math.min(8 , bytesAvailable).toInt
1331
1331
val destArray = new Array [Byte ](bytesLimit)
1332
1332
val destArrayFilled = inStream.inputSource.get(destArray, 0 , bytesLimit)
@@ -1684,23 +1684,23 @@ class Main(
1684
1684
.flatMap(testName => {
1685
1685
if (testOpts.regex()) {
1686
1686
val regex = testName.r
1687
- val matches = tdmlRunner.testCases.filter(testCase =>
1688
- regex.pattern.matcher(testCase.tcName).matches
1689
- )
1687
+ val matches = tdmlRunner
1688
+ .testCases()
1689
+ .filter(testCase => regex.pattern.matcher(testCase.tcName).matches )
1690
1690
matches match {
1691
1691
case m if ! m.isEmpty => m.map(testCase => (testCase.tcName, Some (testCase)))
1692
1692
case _ => Seq ((testName, None ))
1693
1693
}
1694
1694
} else {
1695
- List ((testName, tdmlRunner.testCases.find(_.tcName == testName)))
1695
+ List ((testName, tdmlRunner.testCases() .find(_.tcName == testName)))
1696
1696
}
1697
1697
})
1698
1698
} else {
1699
- tdmlRunner.testCases.map(test => (test.tcName, Some (test)))
1699
+ tdmlRunner.testCases() .map(test => (test.tcName, Some (test)))
1700
1700
}
1701
1701
}.distinct.sortBy(_._1)
1702
1702
1703
- tdmlRunner.reset
1703
+ tdmlRunner.reset()
1704
1704
1705
1705
if (testOpts.list()) {
1706
1706
if (testOpts.info() > 0 ) {
0 commit comments