We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// sourcery: AutoMockable public protocol TestProtocol { func method(value: String, handler: ((Error, String) -> Void)?) -> Int }
Mock:
public class TestProtocolMock: TestProtocol { public init() {} //MARK: - method public var methodValueStringHandlerErrorStringVoidIntCallsCount = 0 public var methodValueStringHandlerErrorStringVoidIntCalled: Bool { return methodValueStringHandlerErrorStringVoidIntCallsCount > 0 } public var methodValueStringHandlerErrorStringVoidIntReturnValue: Int! public var methodValueStringHandlerErrorStringVoidIntClosure: ((String, ((Error, String) -> Void)?) -> Int)? // Extra Bracket here public func method(value: String, handler: (((Error, String) -> Void)?) -> Int { methodValueStringHandlerErrorStringVoidIntCallsCount += 1 if let methodValueStringHandlerErrorStringVoidIntClosure = methodValueStringHandlerErrorStringVoidIntClosure { return methodValueStringHandlerErrorStringVoidIntClosure(value, handler) } else { return methodValueStringHandlerErrorStringVoidIntReturnValue } } }
As you can see Sourcery added one bracket "(" in closure. This bug is reproducible only with multiple closure parameters
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Mock:
As you can see Sourcery added one bracket "(" in closure. This bug is reproducible only with multiple closure parameters
The text was updated successfully, but these errors were encountered: