fake

fun <R> fake(query: Query<R>, answer: () -> R)(source)

Answers query with answer, in place of the transformer that serves it.


fun <A : Any, R> fake(query: QueryWithArgs<A, R>, answer: (A) -> R)(source)

Answers query with answer for each argument.


fun <T : Transmission.Data?> fake(state: StateHandle<T>, value: T)(source)

Publishes value as state, as another transformer would.


fun fake(command: Command): FakeCommand(source)

Accepts command and counts its calls.


Accepts command and records its arguments.