Structure
ImplementationProvider
public struct ImplementationProvider<DeclarationType: Declaration, InvocationType, ReturnType>
Provides implementation functions used to stub behavior and return values.
Initializers
init(implementationCreator:)
public init(implementationCreator: @escaping () -> Any?)
Create an implementation provider with an optional callback.
Parameters
Name | Type | Description |
---|---|---|
implementationCreator | @escaping () -> Any? |
A closure returning an implementation when evaluated. |