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
we use this great tool - Sourcery 2.2.5 - mainly to generate mocks automatically using a custom template.
Now that Xcode 16 has been released, it is possible to use typed throws (SE-0413). Our mocks are generated, but the typed throws are basically ignored by sourcery.
Looking at the SourceryFramework, especially SourceryMethod, we see that we only get the info whether a method throws or not. Therefore, we cannot adjust our custom template to use this new and very useful Xcode feature.
It would be great if another property, e.g. typedThrows, can be added to all relevant types that's used only whenever a method throws a specific error type.
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered:
Hello,
we use this great tool - Sourcery 2.2.5 - mainly to generate mocks automatically using a custom template.
Now that Xcode 16 has been released, it is possible to use typed throws (SE-0413). Our mocks are generated, but the typed throws are basically ignored by sourcery.
Looking at the
SourceryFramework
, especiallySourceryMethod
, we see that we only get the info whether a methodthrows
or not. Therefore, we cannot adjust our custom template to use this new and very useful Xcode feature.It would be great if another property, e.g.
typedThrows
, can be added to all relevant types that's used only whenever a method throws a specific error type.Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: