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

hyperledger / identus-cloud-agent / 11407164708

18 Oct 2024 04:02PM CUT coverage: 48.619% (-0.1%) from 48.741%
11407164708

Pull #1400

FabioPinheiro
build: add job Update Dependency Graph

Signed-off-by: FabioPinheiro <fabiomgpinheiro@gmail.com>
Pull Request #1400: build: add job Update Dependency Graph

7867 of 16181 relevant lines covered (48.62%)

0.49 hits per line

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

75.0
/pollux/core/src/main/scala/org/hyperledger/identus/pollux/core/model/ResourceResolutionMethod.scala
1
package org.hyperledger.identus.pollux.core.model
2

3
import sttp.tapir.Schema
4
import zio.json.*
5

6
enum ResourceResolutionMethod {
7
  case did
8
  case http
9
}
10

11
object ResourceResolutionMethod {
12
  given schema: Schema[ResourceResolutionMethod] = Schema.derivedEnumeration.defaultStringBased
1✔
13
  given encoder: JsonEncoder[ResourceResolutionMethod] = JsonEncoder[String].contramap(_.toString)
1✔
14
  given decoder: JsonDecoder[ResourceResolutionMethod] = JsonDecoder[String].mapOrFail { s =>
1✔
15
    ResourceResolutionMethod.values.find(_.toString == s).toRight(s"Unknown ResourceResolutionMethod: $s")
×
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