Protocol
TestFailer
public protocol TestFailer
A type that can handle test failures emitted by Mockingbird.
Requirements
fail(message:isFatal:file:line:)
func fail(message: String, isFatal: Bool, file: StaticString, line: UInt)
Fail the current test case.
Parameters
Name | Type | Description |
---|---|---|
message | String |
A description of the failure. |
isFatal | Bool |
If |
file | StaticString |
The file where the failure occurred. |
line | UInt |
The line in the file where the failure occurred. |