Yeray Cabello
10/23/2019, 6:54 AM() -> Unit
function as a parameter, but the matchers seem not to be able to get the mocking signature:
io.mockk.MockKException: Failed matching mocking signature for
left matchers: [any()]
What am I missing? I know that equality with lambdas can be a nightmare, but can't seem to find documentation on this.Yeray Cabello
10/23/2019, 7:56 AMpackage mu
import mu.internal.KLoggerFactory
actual object KotlinLogging {
/**
* This method allow defining the logger in a file in the following way:
* val logger = KotlinLogging.logger {}
*/
actual fun logger(func: () -> Unit): KLogger = KLoggerFactory.logger(func)
actual fun logger(name: String): KLogger = KLoggerFactory.logger(name)
}
Yeray Cabello
10/23/2019, 8:01 AMmockkObject(KotlinLogging)
thanks.