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

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

There is a newer version: 4.2.1
Show newest version
package com.copperleaf.ballast.test

import com.copperleaf.ballast.BallastInterceptor
import com.copperleaf.ballast.SideJobScope

public data class TestResults(

    /**
     * All values intercepted by [BallastInterceptor.onInputAccepted] during the test.
     */
    public val acceptedInputs: List,

    /**
     * All values intercepted by [BallastInterceptor.onInputRejected] during the test.
     */
    public val rejectedInputs: List,

    /**
     * All values intercepted by [BallastInterceptor.onInputDropped] during the test.
     */
    public val droppedInputs: List,

    /**
     * All values intercepted by [BallastInterceptor.onInputHandledSuccessfully] during the test.
     */
    public val successfulInputs: List,

    /**
     * All values intercepted by [BallastInterceptor.onInputCancelled] during the test.
     */
    public val cancelledInputs: List,

    /**
     * All values intercepted by [BallastInterceptor.onInputHandlerError] during the test.
     */
    public val inputHandlerErrors: List>,

    /**
     * All values intercepted by [BallastInterceptor.onEventEmitted] during the test.
     */
    public val events: List,

    /**
     * All values intercepted by [BallastInterceptor.onEventHandlerError] during the test.
     */
    public val eventHandlerErrors: List>,

    /**
     * All values intercepted by [BallastInterceptor.onStateEmitted] during the test.
     */
    public val states: List,

    /**
     * All values intercepted by [BallastInterceptor.onSideJobStarted] during the test.
     */
    public val sideJobs: List>,

    /**
     * All values intercepted by [BallastInterceptor.onSideJobError] during the test.
     */
    public val sideJobErrors: List>,

    /**
     * All values intercepted by [BallastInterceptor.onUnhandledError] during the test.
     */
    public val unhandledErrors: List,
) {

    /**
     * Convenience accessor for the final State after the test has completed.
     */
    public val latestState: State = states.last()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy