io.mockk.impl.log.SafeToString.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockk-common Show documentation
Show all versions of mockk-common Show documentation
Common(JS and Java) MockK module
The newest version!
package io.mockk.impl.log
import io.mockk.impl.recording.CommonCallRecorder
class SafeToString(val callrecorderGetter: () -> CommonCallRecorder) {
operator fun invoke(logger: Logger): Logger {
return SafeLogger(logger, callrecorderGetter)
}
fun exec(block: () -> T): T = callrecorderGetter().safeExec(block)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy