• 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

0.0
/mercury/models/src/main/scala/org/hyperledger/identus/mercury/model/EncryptedMessage.scala
1
package org.hyperledger.identus.mercury.model
2

3
import io.circe.*
4
import io.circe.parser.*
5

6
import java.util.Base64
7

8
trait EncryptedMessage { // (private val msg: PackEncryptedResult) {
9
  def string: String // = msg.getPackedMessage
10
  def base64: String = Base64.getUrlEncoder.encodeToString(string.getBytes)
×
11
  def asJson: JsonObject = {
×
12
    parse(string)
×
13
      .flatMap(o =>
×
14
        o.asObject match
×
15
          case None =>
×
16
            Left(
×
17
              ParsingFailure(
18
                "Expecting the Json to be a Json Object",
19
                RuntimeException(s"Expecting Json Object got '$o'")
×
20
              )
21
            )
22
          case Some(value) => Right(value)
×
23
      )
24
      .getOrElse(UnexpectedCodeExecutionPath)
×
25
  }
26
}
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