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

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

23 Apr 2024 04:45AM UTC coverage: 31.908% (+0.4%) from 31.528%
8795121910

Pull #975

CryptoKnightIOG
feat: VC Verification test coverage (#972)

Signed-off-by: Bassam Riman <bassam.riman@iohk.io>
Pull Request #975: feat: Vc Verification Api

104 of 281 new or added lines in 15 files covered. (37.01%)

379 existing lines in 106 files now uncovered.

4619 of 14476 relevant lines covered (31.91%)

0.32 hits per line

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

60.0
/pollux/lib/core/src/main/scala/io/iohk/atala/pollux/core/model/schema/type/AnoncredSchemaType.scala
1
package io.iohk.atala.pollux.core.model.schema.`type`
2

3
import com.networknt.schema.*
4
import io.iohk.atala.pollux.core.model.schema.Schema
5
import io.iohk.atala.pollux.core.model.schema.`type`.anoncred.AnoncredSchemaSerDesV1
6
import io.iohk.atala.pollux.core.model.schema.`type`.anoncred.AnoncredSchemaSerDesV1.*
7
import io.iohk.atala.pollux.core.model.schema.validator.JsonSchemaError
8
import io.iohk.atala.pollux.core.model.schema.validator.JsonSchemaUtils
9
import io.iohk.atala.pollux.core.model.schema.validator.JsonSchemaValidatorImpl
10
import io.iohk.atala.pollux.core.model.schema.validator.SchemaSerDes
11
import zio.*
12
import zio.json.*
13

14
object AnoncredSchemaType extends CredentialSchemaType {
15

16
  val anondcredShemaBasedSerDes: SchemaSerDes[AnoncredSchemaSerDesV1] = AnoncredSchemaSerDesV1.schemaSerDes
17
  val `type`: String = AnoncredSchemaSerDesV1.version
18

1✔
19
  override def validate(schema: Schema): IO[JsonSchemaError, Unit] = {
1✔
UNCOV
20
    for {
×
21
      jsonSchemaSchema <- anondcredShemaBasedSerDes.initialiseJsonSchema
22
      schemaValidator = JsonSchemaValidatorImpl(jsonSchemaSchema)
×
23
      jsonSchemaNode <- JsonSchemaUtils.toJsonNode(schema)
1✔
24
      _ <- schemaValidator.validate(jsonSchemaNode)
25
    } yield ()
26
  }
27
}
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