Function

given(_:file:line:_:)

Call completion with a Given based on value.

Declaration

func given<WrappedType>(_ value: WrappedType, file: StaticString = #file, line: UInt = #line, _ completion: (Given<WrappedType>) -> Void)

Parameters

value

Object that will be stubbed.

file

The file name where the method is called.

line

The line where the method is called.

completion

Block where to define behaviours.

Discussion