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

hyperledger / identus-cloud-agent / 10793991050

10 Sep 2024 01:56PM CUT coverage: 48.504% (-4.5%) from 52.962%
10793991050

push

web-flow
build: sbt and plugins dependency update (#1337)

Signed-off-by: Hyperledger Bot <hyperledger-bot@hyperledger.org>
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
Co-authored-by: Hyperledger Bot <hyperledger-bot@hyperledger.org>
Co-authored-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>

7406 of 15269 relevant lines covered (48.5%)

0.49 hits per line

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

58.82
/pollux/sql-doobie/src/main/scala/org/hyperledger/identus/pollux/sql/repository/Implicits.scala
1
package org.hyperledger.identus.pollux.sql.repository
2

3
import doobie.util.{Get, Put}
4
import org.hyperledger.identus.castor.core.model.did.{CanonicalPrismDID, PrismDID}
5
import org.hyperledger.identus.pollux.core.model.*
6
import org.hyperledger.identus.pollux.vc.jwt.StatusPurpose
7

8
import java.net.{URI, URL}
9

10
given didCommIDGet: Get[DidCommID] = Get[String].map(DidCommID(_))
1✔
11
given didCommIDPut: Put[DidCommID] = Put[String].contramap(_.value)
1✔
12

13
given prismDIDGet: Get[CanonicalPrismDID] =
14
  Get[String].map(s => PrismDID.fromString(s).fold(e => throw RuntimeException(e), _.asCanonical))
1✔
15
given prismDIDPut: Put[CanonicalPrismDID] = Put[String].contramap(_.toString)
1✔
16

17
given statusPurposeGet: Get[StatusPurpose] = Get[String].map {
×
18
  case "Revocation" => StatusPurpose.Revocation
×
19
  case "Suspension" => StatusPurpose.Suspension
×
20
  case purpose      => throw RuntimeException(s"Invalid status purpose - $purpose")
×
21
}
22

23
given statusPurposePut: Put[StatusPurpose] = Put[String].contramap {
×
24
  case StatusPurpose.Revocation => StatusPurpose.Revocation.str
×
25
  case StatusPurpose.Suspension => StatusPurpose.Suspension.str
×
26
}
27

28
given urlGet: Get[URL] = Get[String].map(s => URI.create(s).toURL())
1✔
29
given urlPut: Put[URL] = Put[String].contramap(_.toString())
1✔
30

31
given uriGet: Get[URI] = Get[String].map(s => URI.create(s))
1✔
32
given uriPut: Put[URI] = Put[String].contramap(_.toString())
1✔
33

34
given credFormatGet: Get[CredentialFormat] = Get[String].map(CredentialFormat.valueOf)
1✔
35
given credFormatPut: Put[CredentialFormat] = Put[String].contramap(_.toString())
1✔
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