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

hyperledger / identus-edge-agent-sdk-swift / 11914030434

19 Nov 2024 01:25PM UTC coverage: 42.668% (-0.07%) from 42.738%
11914030434

Pull #179

github

web-flow
Merge 3e60ae2e6 into e8bf5e9ea
Pull Request #179: chore: update coverage badge

5479 of 12841 relevant lines covered (42.67%)

99.88 hits per line

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

0.0
/EdgeAgentSDK/Domain/Sources/Models/Credentials/RevocableCredential.swift
1
import Foundation
2

3
/// `RevocableCredential` is a protocol that defines the attributes and behaviors
4
/// of a credential that can be revoked or suspended.
5
public protocol RevocableCredential {
6
    /// Indicates whether the credential can be revoked.
7
    var canBeRevoked: Bool { get }
8

9
    /// Indicates whether the credential can be suspended.
10
    var canBeSuspended: Bool { get }
11

12
    /// Checks if the credential is currently revoked.
13
    ///
14
    /// - Returns: A Boolean value indicating whether the credential is revoked.
15
    /// - Throws: An error if the status cannot be determined.
16
    var isRevoked: Bool { get async throws }
17

18
    /// Checks if the credential is currently suspended.
19
    ///
20
    /// - Returns: A Boolean value indicating whether the credential is suspended.
21
    /// - Throws: An error if the status cannot be determined.
22
    var isSuspended: Bool { get async throws }
23
}
24

25
public extension Credential {
26
    /// A Boolean value indicating whether the credential can verify revocability.
27
    var isRevocable: Bool { self is RevocableCredential }
×
28

29
    /// Returns the revocable representation of the credential.
30
    var revocable: RevocableCredential? { self as? RevocableCredential }
×
31
}
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