Enumeration Caseswift-testing 6.0.2Testing
confirmationOutOfRange(actual:expected:)
An issue due to a confirmation being confirmed the wrong number of times.
Issue.swift:55This declaration is gated by at least one @_spi attribute.
indirect case confirmationOutOfRange(actual: Int, expected: any Confirmation.ExpectedCount)
Parameters
- actual
The number of times
confirm(count:)
was actually called.- expected
The expected number of times
confirm(count:)
should have been called.
This issue can occur when calling confirmation(_:expectedCount:isolation:sourceLocation:_:)
when the confirmation passed to these functions’ body
closures is confirmed too few or too many times.
Other cases
case unconditional
An issue which occurred unconditionally, for example by using
record(_:sourceLocation:)
.case expectationFailed(Expectation)
An issue due to a failed expectation, such as those produced by
expect(_:_:sourceLocation:)
.case confirmationMiscounted(actual: Int, expected: Int)
An issue due to a confirmation being confirmed the wrong number of times.
case errorCaught(any Error)
An issue due to an
Error
being thrown by a test function and caught by the testing library.case timeLimitExceeded(timeLimitComponents: (seconds: Int64, attoseconds: Int64))
An issue due to a test reaching its time limit and timing out.
case knownIssueNotRecorded
A known issue was expected, but was not recorded.
case apiMisused
An issue occurred due to misuse of the testing library.
case system
An issue due to a failure in the underlying system, not due to a failure within the tests being run.