• 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

91.67
/mercury/models/src/main/scala/org/hyperledger/identus/mercury/model/Message.scala
1
package org.hyperledger.identus.mercury.model
2

3
import io.circe.*
4
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
5

6
import java.time.{LocalDateTime, ZoneOffset}
7
import scala.jdk.CollectionConverters.*
8

9
type PIURI = String //type URI or URL?
10
case class Message(
11
    `type`: PIURI,
12
    from: Option[DidId],
13
    to: Seq[DidId],
14
    body: JsonObject = JsonObject.empty,
×
15
    id: String = java.util.UUID.randomUUID.toString(),
1✔
16
    createdTime: Option[Long] = Some(LocalDateTime.now().toEpochSecond(ZoneOffset.of("Z"))),
1✔
17
    expiresTimePlus: Option[Long] = Some(1000),
1✔
18
    attachments: Option[Seq[AttachmentDescriptor]] = None, // id -> data  (data is also a json)
1✔
19
    thid: Option[String] = None,
1✔
20
    pthid: Option[String] = None,
1✔
21
    ack: Option[Seq[String]] = None,
1✔
22
    pleaseAck: Option[Seq[String]] = None,
1✔
23
) {
24
  def piuri = `type`
1✔
25
}
26

27
object Message {
28
  given Encoder[Message] = {
29
    import AttachmentDescriptor.attachmentDescriptorEncoderV2
30
    deriveEncoder[Message]
1✔
31
  }
32
  given Decoder[Message] = deriveDecoder[Message]
1✔
33
}
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