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

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

28 Mar 2024 08:54AM UTC coverage: 31.453% (+0.3%) from 31.137%
8464767596

push

web-flow
feat(connect): ATL-6599 Use ZIO Failures and Defects effectively + RFC-9457 in connect (#927)

Signed-off-by: Benjamin Voiturier <benjamin.voiturier@iohk.io>

112 of 227 new or added lines in 16 files covered. (49.34%)

401 existing lines in 91 files now uncovered.

4472 of 14218 relevant lines covered (31.45%)

0.31 hits per line

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

66.67
/shared/src/main/scala/io/iohk/atala/shared/models/Base64UrlString.scala
1
package io.iohk.atala.shared.models
2

3
import io.iohk.atala.shared.utils.Base64Utils
4
import scala.util.Try
5

6
opaque type Base64UrlString = String
7

8
object Base64UrlString {
1✔
UNCOV
9
  def fromStringUnsafe(s: String): Base64UrlString = s
×
10
  def fromString(s: String): Try[Base64UrlString] = Try(Base64Utils.decodeURL(s)).map(_ => s)
1✔
11
  def fromByteArray(bytes: Array[Byte]): Base64UrlString = Base64Utils.encodeURL(bytes)
12

13
  extension (s: Base64UrlString) {
1✔
14
    def toStringNoPadding: String = s.takeWhile(_ != '=')
1✔
15
    def toByteArray: Array[Byte] = Base64Utils.decodeURL(s)
×
16
    def toString: String = s
17
  }
18
}
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