Contents

XCTNSPredicateExpectation.Handler

A handler XCTest calls when evaluating the predicate returns true.

Declaration

typealias Handler = @Sendable () -> Bool

Return Value

Your custom handler should return true if the expectation is considered fulfilled, otherwise false.

See Also

Handling Predicate Resolution