jmfayard
sealed class Either
Left
Right
Either
eurycea
ephemient
@ForbidMockk
JvmMockKGateway.anyValueGeneratorFactory = { voidInstance -> object : JvmAnyValueGenerator(voidInstance) { override fun anyValue(cls: KClass<*>, isNullable: Boolean, orInstantiateVia: () -> Any?): Any? { if (cls == Either::class) return Either.Left(MockingError) return super.anyValue(cls, isNullable, orInstantiateVia) } } }
A modern programming language that makes developers happier.