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

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

09 Oct 2023 07:40AM UTC coverage: 30.964% (+1.9%) from 29.015%
6453706290

Pull #693

bvoiturier
docs: fix URLs to credential definitions doc

Signed-off-by: Benjamin Voiturier <benjamin.voiturier@iohk.io>
Pull Request #693: feat(prism-agent): implement AnonCreds issuance flow

782 of 782 new or added lines in 52 files covered. (100.0%)

3855 of 12450 relevant lines covered (30.96%)

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✔
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