All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.mockk.impl.log.SafeToString.kt Maven / Gradle / Ivy

There is a newer version: 1.13.12
Show newest version
package io.mockk.impl.log

import io.mockk.impl.recording.CommonCallRecorder

class SafeToString(val callrecorderGetter: () -> CommonCallRecorder) {
    operator fun invoke(logger: Logger): Logger = SafeLogger(logger, callrecorderGetter)

    fun  exec(block: () -> T): T = callrecorderGetter().safeExec(block)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy