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

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

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