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

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

06 Nov 2023 06:54AM UTC coverage: 31.199% (+0.5%) from 30.679%
6767313165

push

web-flow
feat: Keycloak container support with clients and PermissionManagement service (#755)

Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
Signed-off-by: Pat Losoponkul <pat.losoponkul@iohk.io>
Co-authored-by: Pat Losoponkul <pat.losoponkul@iohk.io>

72 of 171 new or added lines in 7 files covered. (42.11%)

236 existing lines in 70 files now uncovered.

4029 of 12914 relevant lines covered (31.2%)

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