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 - Rewrite GenericFuncTests with @Fixture by @sidepelican in https://github.com/uber/mockolo/pull/301
- Update CI Configuration by @sidepelican in https://github.com/uber/mockolo/pull/308
- Fix matrix name in builds.yml by @fummicc1 in https://github.com/uber/mockolo/pull/310
- Better test verification by @sidepelican in https://github.com/uber/mockolo/pull/304
- Bump up version to 2.4.0 by @sidepelican in https://github.com/uber/mockolo/pull/311
Full Changelog: https://github.com/uber/mockolo/compare/2.3.1...2.4.0
For Build Tools Plugin (artifactbundle)
.binaryTarget(
name: "mockolo",
url: "https://github.com/uber/mockolo/releases/download/2.4.0/mockolo.artifactbundle.zip",
checksum: "740787a5c532dc1a16e9b6940c7ef844caa1f7c02cb85b740e4f44f49a25dc68"
),