• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Martomate / TriPaint / 9275511596

28 May 2024 07:51PM UTC coverage: 29.682% (+1.8%) from 27.877%
9275511596

push

github

Martomate
Updated to Scala 3.4 and MUnit 1.0

2 of 11 new or added lines in 9 files covered. (18.18%)

430 existing lines in 38 files now uncovered.

401 of 1351 relevant lines covered (29.68%)

0.3 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/main/scala/tripaint/util/CachedLoader.scala
1
package tripaint.util
2

3
import scala.util.{Failure, Success, Try}
4

5
object CachedLoader {
6

7
  /** @return `Success((value, foundInCache))` or `Failure(errorDuringLoad)` */
8
  def apply[T](cached: => Option[T], load: => Try[T]): Try[(T, Boolean)] =
1✔
9
    cached match
UNCOV
10
      case Some(value) => Success((value, true))
×
11
      case None =>
1✔
12
        load match
13
          case Success(value) => Success((value, false))
1✔
14
          case Failure(error) => Failure(error)
1✔
15
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc