1.5.0
BREAKING CHANGE: ArgConstraint.description
is now () -> String
instead of simply String
.
This only impacts you if you have defined custom argument constraints.
#13: Fixes wrongful assertion error when verifying using a mock as a parameter of an argument contraint (such as verify { mock.call(isEqual(otherMock)) }
).
ArgConstraints.description
is now resolved lazily. In case of assertion failure, it is also resolved outside of verification mode.
Note that the mocker now throws MockerVerificationAssertionError
(which resolve their message lazily).
#15: Fixes bad code generation when mocking an interface that uses typealias.
#16: Fixes the absence of annotations in generated code.
Annotations are now copied verbatim in the generated code.
#17: Compiled with Kotlin 1.6.20 and KSP 1.6.21-1.0.5