Object that will be stubbed.
Function given(_:
given(_:file:line:_:)
Call
completion
with a Given
based on value
.Framework
- Mock
Swift
Declaration
func given<WrappedType>(_ value: WrappedType , file: StaticString = #file, line: UInt = #line, _ completion: (Given<WrappedType >) -> Void)
Parameters
value
file
The file name where the method is called.
line
The line where the method is called.
completion
Block where to define behaviours.