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
valuefileThe file name where the method is called.
lineThe line where the method is called.
completionBlock where to define behaviours.