Class

Operation.TestOperation

Operation type used for tests.

Common
class TestOperation
    @TestOnly
    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

Common
val intParams = List(ints) { it }
Common
val objParams = List(objects) { index -> ObjectParameter<Any?>(index) }
Common
class TestOperation
    @TestOnly
    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

Common
val intParams = List(ints) { it }
Common
val objParams = List(objects) { index -> ObjectParameter<Any?>(index) }