commonMain.com.zegreatrob.testmints.StandardMints.kt Maven / Gradle / Ivy
package com.zegreatrob.testmints
import com.zegreatrob.testmints.report.MintReporterConfig
import com.zegreatrob.testmints.report.ReporterProvider
import kotlin.jvm.JvmName
object StandardMints : StandardMintDispatcher, ReporterProvider by MintReporterConfig
val setup get() = StandardMints.setup
fun testTemplate(sharedSetup: () -> SC, sharedTeardown: (SC) -> Unit = {}) =
StandardMints.testTemplate(sharedSetup, sharedTeardown)
fun testTemplate(beforeAll: () -> SC) = StandardMints.testTemplate(beforeAll = beforeAll)
fun testTemplate(sharedSetup: () -> Unit, sharedTeardown: () -> Unit) =
StandardMints.testTemplate(sharedSetup, { sharedTeardown() })
@JvmName("testTemplateSimple")
fun testTemplate(wrapper: SimpleWrapper) = StandardMints.testTemplateSimple(wrapper)
@JvmName("testTemplateSC")
fun testTemplate(wrapper: Wrapper) = StandardMints.testTemplate(wrapper)
typealias SimpleWrapper = (() -> Unit) -> Unit