Mockingbird Documentation 0.17.0

Protocol Test​Failer

public protocol TestFailer  

A type that can handle test failures emitted by Mockingbird.

Requirements

fail(message:​is​Fatal:​file:​line:​)

func fail(message: String, isFatal: Bool, file: StaticString, line: UInt) 

Fail the current test case.

Parameters

message String

A description of the failure.

is​Fatal Bool

If true, test case execution should not continue.

file Static​String

The file where the failure occurred.

line UInt

The line in the file where the failure occurred.