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

commonMain.com.copperleaf.ballast.test.run.kt Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
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