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

scoverage / sbt-scoverage-samples / 4741723636

19 Apr 2023 09:30AM CUT coverage: 66.912% (-5.6%) from 72.477%
4741723636

push

Roland Tritsch
Even more time to shut down.

91 of 136 relevant lines covered (66.91%)

0.65 hits per line

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

44.44
/src/main/scala/org/scoverage/samples/SimpleObject.scala
1
package org.scoverage.samples
2

3
import scala.concurrent.{ExecutionContext, Future}
4
import ExecutionContext.Implicits.global
5

6
object SimpleObject {
7

1✔
8
  private def getSomething = Future.successful(3)
9

×
10
  private def getOtherSomething = Future.successful(5)
11

1✔
12
  def method(input1: Boolean, input2: Boolean): Future[Option[Boolean]] = {
1✔
13
    for {
14
      b <-
×
15
        if (input1) getSomething
×
16
        else getOtherSomething // this else should not be covered
17
    } yield {
1✔
18
      if (input1 && input2) {
19
        Some(true)
×
20
      } else if (input1 && !input2) {
21
        Some(false) // this too
×
22
      } else {
23
        None // this too
24
      }
25
    }
26
  }
27

28
}
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