-
Notifications
You must be signed in to change notification settings - Fork 98
Inheritance across modules #344
Copy link
Copy link
Open
Description
It seems impossible to generate a mock for a protocol that inherits a protocol from a SPM dependency. Is this a known limitation of mockolo? If so, would it be possible to extend mockolo in such a way that this is possible?
Input
// Module A from dependency
// We have no control over this source file
protocol Foo {
var title: String { get }
}// Module B
import ModuleA
/// @mockable
protocol Bar: Foo {}Output
// Expected result
class BarMock: Bar {
init() { }
init(title: String = "") {
self.title = title
}
var title: String = ""
}
// Actual result
class BarMock: Bar {
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels