Skip to content

Commit

Permalink
Replaced remaining with
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 23, 2025
1 parent 451eedc commit 7864156
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/probably.Report.scala
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Report(using Environment):

def resolve(suite: Optional[Testable]): ReportLine.Suite =
suite.option.map: suite =>
(resolve(suite.parent).tests(suite.id): @unchecked) match
resolve(suite.parent).tests(suite.id).runtimeChecked match
case suite@ReportLine.Suite(_, _) => suite

. getOrElse(lines)
Expand All @@ -120,8 +120,7 @@ class Report(using Environment):
def addOutcome(testId: TestId, outcome: Outcome): Report = this.also:
val tests = resolve(testId.suite).tests

(tests.getOrElseUpdate
(testId, ReportLine.Test(testId, scm.ArrayBuffer[Outcome]())): @unchecked) match
tests.getOrElseUpdate(testId, ReportLine.Test(testId, scm.ArrayBuffer[Outcome]())).runtimeChecked match
case ReportLine.Test(_, buf) => buf.append(outcome)

def addDetails(testId: TestId, info: Details): Report =
Expand Down

0 comments on commit 7864156

Please sign in to comment.