uber / mockolo

Efficient Mock Generator for Swift
Apache License 2.0
813 stars 86 forks source link

@available attribute on function mocked incorrectly #211

Open AndrewSB opened 1 year ago

AndrewSB commented 1 year ago

when a protocol is marked with a @available(*, deprecated... on a function, mockolo specifies the entire type as @available(*, deprecated, ... instead of just the function

Screenshot 2023-01-26 at 11 20 47 AM

is that expected behavior and desirable at Uber? or simply an oversight

tinder-owenthomas commented 1 year ago

I'm running into this issue as well. Have you found a fix/workaround?

AndrewSB commented 1 year ago

i have not, ive just been ignoring the warning

karim-alweheshy commented 7 months ago

This breaks the generation is the function aslo has an @objc on it