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
After swift 5.6 it's possible to declare in protocols async and/or throws properties:
/// @mockable protocol AsyncProperties { var isAvailable: Bool { get async throws } }
but mockolo still doesnt support this syntax, and generates just a simple Bool property.
Bool
class AsyncPropertiesMock: AsyncProperties { init() { } init(isAvailable: Bool = false) { self.isAvailable = isAvailable } var isAvailableSetCallCount = 0 var isAvailable: Bool = false { didSet { isAvailableSetCallCount += 1 } } }
is there any plan to update it so that /// @mockable can successfully also generate an async throws handler for this case?
/// @mockable
async throws
The text was updated successfully, but these errors were encountered:
It should be fixed, but I think it is a less common requirement, so it is not a priority.
Sorry, something went wrong.
Not fixed, without a handler i cant test any throwing because the mock doesnt actually throws. Hoping in an update eventually :)
No branches or pull requests
After swift 5.6 it's possible to declare in protocols async and/or throws properties:
but mockolo still doesnt support this syntax, and generates just a simple
Bool
property.is there any plan to update it so that
/// @mockable
can successfully also generate anasync throws
handler for this case?The text was updated successfully, but these errors were encountered: