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

input-output-hk / atala-prism-building-blocks / 7753152857

02 Feb 2024 08:12AM UTC coverage: 31.346% (+0.05%) from 31.294%
7753152857

Pull #854

bvoiturier
docs(prism-agent): run scalafmtAll

Signed-off-by: Benjamin Voiturier <benjamin.voiturier@iohk.io>
Pull Request #854: docs(prism-agent): improve Connect OAS documentation

0 of 10 new or added lines in 2 files covered. (0.0%)

334 existing lines in 72 files now uncovered.

4016 of 12812 relevant lines covered (31.35%)

0.31 hits per line

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

33.33
/shared/src/main/scala/io/iohk/atala/shared/utils/Traverse.scala
1
package io.iohk.atala.shared.utils
2

3
/** A lightweight DIY version of traverse to not rely on Cats because Scala3 + Cats implicits break the IDE compile
4
  * server making the development counterproductive.
5
  */
6
object Traverse {
7

8
  extension [A](ls: Seq[A]) {
1✔
UNCOV
9
    def traverse[E, B](f: A => Either[E, B]): Either[E, Seq[B]] =
×
10
      ls.foldRight[Either[E, List[B]]](Right(Nil))((i, acc) => acc.flatMap(ls => f(i).map(_ :: ls)))
11
  }
12

13
  extension [A, E](ls: Seq[Either[E, A]]) {
×
14
    def sequence: Either[E, Seq[A]] = ls.traverse(identity)
15
  }
16

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