avoid deprecated /: and :\

use foldLeft and foldRight

https://github.com/scala/scala/blob/v2.13.0/src/library/scala/collection/IterableOnce.scala#L682-L686
This commit is contained in:
xuwei-k
2019-09-12 20:53:41 -04:00
committed by Eugene Yokota
parent 02f23b313b
commit 58b0484d80
28 changed files with 45 additions and 43 deletions
@@ -131,7 +131,7 @@ object TestEvent {
}
private[sbt] def overallResult(events: Seq[TEvent]): TestResult =
((TestResult.Passed: TestResult) /: events) { (sum, event) =>
events.foldLeft(TestResult.Passed: TestResult) { (sum, event) =>
(sum, event.status) match {
case (TestResult.Error, _) => TestResult.Error
case (_, TStatus.Error) => TestResult.Error