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
I need one of my protocols to inherit AnyObject.
When I do this, mock generator generates relative mock but it only inherits of Mockingbird.Mock instead of both Mockingbird.Mock and MyPackageName.MyClassOnlyProtocol.
Example
protocol MyClassOnlyProtocol: AnyObject { ... }
// MARK: - Mocked MyClassOnlyProtocol
public final class MyClassOnlyProtocolMock: Mockingbird.Mock { ... }
Expected Behavior
protocol MyClassOnlyProtocol: AnyObject { ... }
// MARK: - Mocked MyClassOnlyProtocol
public final class MyClassOnlyProtocolMock: MyPackageName.MyClassOnlyProtocol, Mockingbird.Mock { ... }
Environment
Mockingbird CLI version (mockingbird version): 0.20.0
Xcode and Swift version (swift --version):
Xcode Version 14.1 (14B47b)
swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
Target: arm64-apple-macosx13.0
Hi @Narayane indeed. This could work, but if the variables are declared as weak some other issues appear. 🤔
I'm not near that project but will try again later and will leave the actual error here.
Thanks for the heads up!
New Issue Checklist
Overview
I need one of my protocols to inherit
AnyObject
.When I do this, mock generator generates relative mock but it only inherits of
Mockingbird.Mock
instead of bothMockingbird.Mock
andMyPackageName.MyClassOnlyProtocol
.Example
protocol MyClassOnlyProtocol: AnyObject { ... }
Expected Behavior
protocol MyClassOnlyProtocol: AnyObject { ... }
Environment
mockingbird version
): 0.20.0swift --version
):Target: arm64-apple-macosx13.0
The text was updated successfully, but these errors were encountered: