mockolo
mockolo copied to clipboard
Efficient Mock Generator for Swift
Would be nice if mockolo could output generated mocks to stdout. Many linux/unix commands use a single dash to allow input/output from stdin/stdout, e.g. ``` mockolo -srcs mySrcs -d -...
Could you support to actor protocol? I would like to automatically generate an "Actor" compliant protocol as follows. ```.swift /// @mockable protocol Hoge: Actor { func get(hoge: String) async ->...
# Issue Part of #216 (https://github.com/uber/mockolo/issues/216#issuecomment-1454179318 's "2.") # Description Add feature generating mocks for that protocol that conform to the [`Actor`](https://developer.apple.com/documentation/swift/actor) automatically become actor. For details: https://github.com/uber/mockolo/issues/216#issuecomment-1454179318
The following code: ``` protocol ProtocolReturningOpaqueTypeInClosureProtocol { func register(router: @autoclosure @escaping () -> (some Error)) } ``` produces this mock: ``` class ProtocolReturningOpaqueTypeInClosureProtocolMock: ProtocolReturningOpaqueTypeInClosureProtocol { init() { } private(set) var...
# Issue #249 Async functions are unsafe in generated mocks, and can crash if used from multiple threads simultaneously # Description This change lets you specify the global actor that...
In this pull request, typed-throw is considered in the mock generation. During the implementation, I encountered several unclear points. Additionally, I had to update the required macOS version to Ventura...
Please add support for Typed throws as described in [SE-0413](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0413-typed-throws.md). For example: ```swift func throwsAnything() throws(any Error) { ... } ``` Thank you.