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

scoverage / sbt-scoverage-samples / 12961978118

05 Nov 2023 02:28PM CUT coverage: 93.289%. First build
12961978118

Pull #352

rolandtritsch
Update test file to latest version.
Pull Request #352:

278 of 298 relevant lines covered (93.29%)

2.19 hits per line

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

90.0
/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

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

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

2✔
12
  def method(input1: Boolean, input2: Boolean): Future[Option[Boolean]] = {
2✔
13
    for {
14
      b <-
2✔
15
        if (input1) getSomething
2✔
16
        else getOtherSomething // this else should not be covered
17
    } yield {
2✔
18
      if (input1 && input2) {
2✔
19
        Some(true)
2✔
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