AsyncRequirement

public struct AsyncRequirement<Value>

Undocumented

  • Undocumented

    Declaration

    Swift

    public let expression: AsyncExpression<Value>
  • A custom error to throw. If nil, then we will throw a RequireError on failure.

    Declaration

    Swift

    public let customError: Error?
  • Undocumented

    Declaration

    Swift

    public var location: SourceLocation { get }
  • Undocumented

    Declaration

    Swift

    public init(expression: AsyncExpression<Value>, customError: Error?)
  • Undocumented

    Declaration

    Swift

    public func verify(_ pass: Bool, _ message: FailureMessage, _ value: Value?) throws -> Value
  • to(_:description:) Asynchronous

    Tests the actual value using a matcher to match.

    Declaration

    Swift

    @discardableResult
    public func to(_ matcher: Matcher<Value>, description: String? = nil) async throws -> Value
  • toNot(_:description:) Asynchronous

    Tests the actual value using a matcher to not match.

    Declaration

    Swift

    @discardableResult
    public func toNot(_ matcher: Matcher<Value>, description: String? = nil) async throws -> Value
  • notTo(_:description:) Asynchronous

    Tests the actual value using a matcher to not match.

    Alias to toNot().

    Declaration

    Swift

    @discardableResult
    public func notTo(_ matcher: Matcher<Value>, description: String? = nil) async throws -> Value

AsyncMatchers

  • to(_:description:) Asynchronous

    Tests the actual value using a matcher to match.

    Declaration

    Swift

    @discardableResult
    public func to(_ matcher: AsyncMatcher<Value>, description: String? = nil) async throws -> Value
  • toNot(_:description:) Asynchronous

    Tests the actual value using a matcher to not match.

    Declaration

    Swift

    @discardableResult
    public func toNot(_ matcher: AsyncMatcher<Value>, description: String? = nil) async throws -> Value
  • notTo(_:description:) Asynchronous

    Tests the actual value using a matcher to not match.

    Alias to toNot().

    Declaration

    Swift

    @discardableResult
    public func notTo(_ matcher: AsyncMatcher<Value>, description: String? = nil) async throws -> Value

Async Polling With Synchronous Matchers

Async Polling With AsyncMatchers