New
2.4.0
New features
- When associatedtype has constraints, mock class becomes generic by @sidepelican in https://github.com/uber/mockolo/pull/294
/// @mockable
protocol Foo {
associatedtype T: StringProtocol
}
// before
class FooMock: Foo {
typealias T = StringProtocol // 🤪 StringProtocol is not conforms to StringProtocol. Protocols don't conform to itself.
init() { }
}
// after
class FooMock<T: StringProtocol>: Foo {
init() { }
}
Fix bugs
- Avoid Special Handling of the "Unknown" Type Name by @sidepelican in https://github.com/uber/mockolo/pull/299
- Remove
metadatafrom NominalModel, resulting correct Rx SubjectType in mock's init. by @sidepelican in https://github.com/uber/mockolo/pull/292
Maintenances
- Use @Fixture in VarTests by @sidepelican in https://github.com/uber/mockolo/pull/291
- Use
@Fixturein Rx Tests and removeuse-mock-observableflag by @fummicc1 in https://github.com/uber/mockolo/pull/297 - Remove
castproperty fromSwiftTypeby @sidepelican in https://github.com/uber/mockolo/pull/300