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
thank you for your bug report. Indeed, current implementation does not support method overloading it seems.
Possible solution would be to start including type information into the generated tracking variable names to make them uniquely-named, i.e.
-public var doSomethingReceivedData: Int?+public var doSomethingIntReceivedData: Int?
...
-public var doSomethingCallsCount = 0+public var doSomethingStringCallsCount = 0
I am unable to mock a protocol with methods that differ in parameter type. For example:
The generated mock is invalid and can't be compiled. The compiler shows errors like
Invalid redeclaration of 'doSomethingCallsCount'
. The mock:Is it possible to configure the mock generation to make it work?
I'm using Sourcery 2.1.2
The text was updated successfully, but these errors were encountered: