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

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

24 Apr 2024 02:48PM UTC coverage: 32.039% (+0.1%) from 31.912%
8818722866

Pull #973

mineme0110
minor cleanup

Signed-off-by: mineme0110 <shailesh.patil@iohk.io>
Pull Request #973: feat: Align the repo with new name identus-cloud-agent

0 of 6 new or added lines in 4 files covered. (0.0%)

388 existing lines in 91 files now uncovered.

4619 of 14417 relevant lines covered (32.04%)

0.32 hits per line

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

15.38
/pollux/lib/sql-doobie/src/main/scala/io/iohk/atala/pollux/sql/repository/Implicits.scala
1
package io.iohk.atala.pollux.sql.repository
2

3
import doobie.util.{Get, Put}
4
import io.iohk.atala.castor.core.model.did.{CanonicalPrismDID, PrismDID}
5
import io.iohk.atala.pollux.core.model.*
6
import io.iohk.atala.pollux.vc.jwt.StatusPurpose
7
import io.iohk.atala.shared.models.WalletId
8

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

×
12
given walletIdGet: Get[WalletId] = Get[String].map(WalletId.fromUUIDString)
×
13
given walletIdPut: Put[WalletId] = Put[String].contramap(_.toString)
14

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

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

×
25
given statusPurposePut: Put[StatusPurpose] = Put[String].contramap {
×
26
  case StatusPurpose.Revocation => StatusPurpose.Revocation.str
×
27
  case StatusPurpose.Suspension => StatusPurpose.Suspension.str
28
}
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