You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generating a mock from a function with parameters containing the some keyword fails
Example
Steps to reproduce the issue
Given a swift file containing this code
import Foundation
protocolAutoMockable{}protocolCustomerProtocol{varname:String{get}varemail:String{get}}protocolCustomerRepositoryProtocol:AutoMockable{func send(customer:someCustomerProtocol)->Result<CustomerRepositorySuccess,CustomerRepositoryError>}structCustomerRepositorySuccess{}enumCustomerRepositoryError:Error{case remoteFailure(String)}
Launch the mock generation using ./Pods/SwiftyMocky/bin/swiftymocky generate
The resulting Mock.generated file produces a file with errors
Expected behavior
The generated Mock file should compile
Environment
SwiftyMocky version: 4.1.0
Xcode and Swift version: XCode 14.0 / Swift 5.7
Package manager: CocoaPods
Unit testing framework: XCTest
The text was updated successfully, but these errors were encountered:
Overview
Generating a mock from a function with parameters containing the
some
keyword failsExample
Steps to reproduce the issue
Launch the mock generation using
./Pods/SwiftyMocky/bin/swiftymocky generate
The resulting Mock.generated file produces a file with errors
Expected behavior
The generated Mock file should compile
Environment
SwiftyMocky version: 4.1.0
Xcode and Swift version: XCode 14.0 / Swift 5.7
Package manager: CocoaPods
Unit testing framework: XCTest
The text was updated successfully, but these errors were encountered: