Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
MIT License
1.03k
stars
104
forks
source link
Computed vars do not write to invocation array in a threadsafe way #333
public var currentDate: Date {
get { invocations.append(.p_currentDate_get); return __p_currentDate ?? givenGetterValue(.p_currentDate_get, "CurrentDateProviderMock - stub value for currentDate was not defined") }
}
whereas functions do
open func cancelTrigger() {
addInvocation(.m_cancelTrigger)
let perform = methodPerformValue(.m_cancelTrigger) as? () -> Void
perform?()
}
whereas functions do