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(_:
Asynchronousdescription: ) 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(_:
Asynchronousdescription: ) 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(_:
Asynchronousdescription: ) 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
-
to(_:
Asynchronousdescription: ) 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(_:
Asynchronousdescription: ) 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(_:
Asynchronousdescription: ) 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
-
toEventually(_:
Asynchronoustimeout: pollInterval: description: ) Tests the actual value using a matcher to match by checking continuously at each pollInterval until the timeout is reached.
Declaration
Swift
@discardableResult public func toEventually(_ matcher: Matcher<Value>, timeout: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
toEventuallyNot(_:
Asynchronoustimeout: pollInterval: description: ) Tests the actual value using a matcher to not match by checking continuously at each pollInterval until the timeout is reached.
Declaration
Swift
@discardableResult public func toEventuallyNot(_ matcher: Matcher<Value>, timeout: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
toNotEventually(_:
Asynchronoustimeout: pollInterval: description: ) Tests the actual value using a matcher to not match by checking continuously at each pollInterval until the timeout is reached.
Alias of toEventuallyNot()
Declaration
Swift
@discardableResult public func toNotEventually(_ matcher: Matcher<Value>, timeout: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
toNever(_:
Asynchronousuntil: pollInterval: description: ) Tests the actual value using a matcher to never match by checking continuously at each pollInterval until the timeout is reached.
Declaration
Swift
@discardableResult public func toNever(_ matcher: Matcher<Value>, until: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
neverTo(_:
Asynchronousuntil: pollInterval: description: ) Tests the actual value using a matcher to never match by checking continuously at each pollInterval until the timeout is reached.
Alias of toNever()
Declaration
Swift
@discardableResult public func neverTo(_ matcher: Matcher<Value>, until: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
toAlways(_:
Asynchronousuntil: pollInterval: description: ) Tests the actual value using a matcher to always match by checking continusouly at each pollInterval until the timeout is reached
Declaration
Swift
@discardableResult public func toAlways(_ matcher: Matcher<Value>, until: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
alwaysTo(_:
Asynchronousuntil: pollInterval: description: ) Tests the actual value using a matcher to always match by checking continusouly at each pollInterval until the timeout is reached
Alias of toAlways()
Declaration
Swift
@discardableResult public func alwaysTo(_ matcher: Matcher<Value>, until: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
toEventually(_:
Asynchronoustimeout: pollInterval: description: ) Tests the actual value using a matcher to match by checking continuously at each pollInterval until the timeout is reached.
Declaration
Swift
@discardableResult public func toEventually(_ matcher: AsyncMatcher<Value>, timeout: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
toEventuallyNot(_:
Asynchronoustimeout: pollInterval: description: ) Tests the actual value using a matcher to not match by checking continuously at each pollInterval until the timeout is reached.
Declaration
Swift
@discardableResult public func toEventuallyNot(_ matcher: AsyncMatcher<Value>, timeout: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
toNotEventually(_:
Asynchronoustimeout: pollInterval: description: ) Tests the actual value using a matcher to not match by checking continuously at each pollInterval until the timeout is reached.
Alias of toEventuallyNot()
Declaration
Swift
@discardableResult public func toNotEventually(_ matcher: AsyncMatcher<Value>, timeout: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
toNever(_:
Asynchronousuntil: pollInterval: description: ) Tests the actual value using a matcher to never match by checking continuously at each pollInterval until the timeout is reached.
Declaration
Swift
@discardableResult public func toNever(_ matcher: AsyncMatcher<Value>, until: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
neverTo(_:
Asynchronousuntil: pollInterval: description: ) Tests the actual value using a matcher to never match by checking continuously at each pollInterval until the timeout is reached.
Alias of toNever()
Declaration
Swift
@discardableResult public func neverTo(_ matcher: AsyncMatcher<Value>, until: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
toAlways(_:
Asynchronousuntil: pollInterval: description: ) Tests the actual value using a matcher to always match by checking continusouly at each pollInterval until the timeout is reached
Declaration
Swift
@discardableResult public func toAlways(_ matcher: AsyncMatcher<Value>, until: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value
-
alwaysTo(_:
Asynchronousuntil: pollInterval: description: ) Tests the actual value using a matcher to always match by checking continusouly at each pollInterval until the timeout is reached
Alias of toAlways()
Declaration
Swift
@discardableResult public func alwaysTo(_ matcher: AsyncMatcher<Value>, until: NimbleTimeInterval = PollingDefaults.timeout, pollInterval: NimbleTimeInterval = PollingDefaults.pollInterval, description: String? = nil) async throws -> Value