Source set: 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
intParams
Source set: Common
val intParams = List(ints) { it }
objParams
Source set: Common
val objParams = List(objects) { index -> ObjectParameter<Any?>(index) }
Source set: 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
intParams
Source set: Common
val intParams = List(ints) { it }
objParams
Source set: Common
val objParams = List(objects) { index -> ObjectParameter<Any?>(index) }