🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

Operation.TestOperation

Operation type used for tests.

Source set: Common
class TestOperation constructor(
        ints: Int = 0,
        objects: Int = 0,
        val block: (Applier<*>, SlotWriter, RememberManager) -> Unit = { _, _, _ -> },
    ) : Operation(ints, objects)

Operation type used for tests. Operations can be created with arbitrary int and object params, which lets us test Operations without relying on the implementation details of any particular operation we use in production.

Properties

intParams

Source set: Common
@Suppress("PrimitiveInCollection") val intParams = List(ints) { it }

objParams

Source set: Common
val objParams = List(objects) { index -> ObjectParameter<Any?>(index) }

Functions

execute

Source set: Common
override fun OperationArgContainer.execute(
            applier: Applier<*>,
            slots: SlotWriter,
            rememberManager: RememberManager,
            errorContext: OperationErrorContext?,
        ): Unit

toString

Source set: Common
override fun toString() =
            "TestOperation(ints = $ints, objects = $objects)@${identityHashCode(this)}"
Source set: Common
class TestOperation constructor(
        ints: Int = 0,
        objects: Int = 0,
        val block: (Applier<*>, SlotTableEditor, RememberManager) -> Unit = { _, _, _ -> },
    ) : Operation(ints, objects)

Operation type used for tests. Operations can be created with arbitrary int and object params, which lets us test Operations without relying on the implementation details of any particular operation we use in production.

Properties

intParams

Source set: Common
@Suppress("PrimitiveInCollection") val intParams = List(ints) { it }

objParams

Source set: Common
val objParams = List(objects) { index -> ObjectParameter<Any?>(index) }

Functions

execute

Source set: Common
override fun OperationArgContainer.execute(
            applier: Applier<*>,
            slots: SlotTableEditor,
            rememberManager: RememberManager,
            errorContext: OperationErrorContext?,
        ): Unit

toString

Source set: Common
override fun toString() =
            "TestOperation(ints = $ints, objects = $objects)@${identityHashCode(this)}"