commonMain.com.copperleaf.ballast.test.run.kt Maven / Gradle / Ivy
package com.copperleaf.ballast.test
import com.copperleaf.ballast.EventHandler
import com.copperleaf.ballast.InputFilter
import com.copperleaf.ballast.InputHandler
import com.copperleaf.ballast.test.internal.BallastTestSuiteScopeImpl
import com.copperleaf.ballast.test.internal.runTestSuite
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlin.time.ExperimentalTime
@ExperimentalCoroutinesApi
@ExperimentalTime
public suspend fun viewModelTest(
inputHandler: InputHandler,
eventHandler: EventHandler,
filter: InputFilter? = null,
block: BallastTestSuiteScope.() -> Unit
) {
val testSuite = BallastTestSuiteScopeImpl(
inputHandler = inputHandler,
eventHandler = eventHandler,
filter = filter,
).apply(block)
runTestSuite(testSuite)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy