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

hyperledger / identus-cloud-agent / 10807284826

11 Sep 2024 07:46AM CUT coverage: 48.663% (+0.1%) from 48.554%
10807284826

Pull #1332

patlo-iog
test: make test work again

Signed-off-by: Pat Losoponkul <pat.losoponkul@iohk.io>
Pull Request #1332: feat: presentation_submission validation logic [WIP]

92 of 134 new or added lines in 5 files covered. (68.66%)

248 existing lines in 65 files now uncovered.

7478 of 15367 relevant lines covered (48.66%)

0.49 hits per line

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

83.33
/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
  }
UNCOV
32
  given Decoder[Message] = deriveDecoder[Message]
×
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