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

hyperledger / identus-cloud-agent / 11056380298

26 Sep 2024 04:28PM CUT coverage: 48.66% (+0.05%) from 48.609%
11056380298

Pull #1375

yshyn-iohk
fix: migration to a new eudi.openid4vci library

Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
Pull Request #1375: fix: OAS and http clients for Kotliln and TypeScript

34 of 81 new or added lines in 25 files covered. (41.98%)

182 existing lines in 53 files now uncovered.

7860 of 16153 relevant lines covered (48.66%)

0.49 hits per line

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

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

NEW
23
given statusPurposePut: Put[StatusPurpose] = Put[String].contramap(_.toString)
×
24

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

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

31
given credFormatGet: Get[CredentialFormat] = Get[String].map(CredentialFormat.valueOf)
1✔
32
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