on

abstract fun <T, S> on(id: MutationId<T, S>, mutate: FakeMutationMutate<T, S>)

Mocks the mutation process corresponding to MutationId.

Parameters

id

The mutation ID that identifies this mutation

mutate

A function that mocks the mutation behavior


abstract fun <T, S> on(testTag: MutationTestTag<T, S>, mutate: FakeMutationMutate<T, S>)

Mocks the mutation process corresponding to MutationTestTag.

Parameters

testTag

The test tag that identifies this mutation

mutate

A function that mocks the mutation behavior


abstract fun <T> on(id: QueryId<T>, fetch: FakeQueryFetch<T>)

Mocks the query process corresponding to QueryId.

Parameters

id

The query ID that identifies this query

fetch

A function that mocks the query behavior


abstract fun <T> on(testTag: QueryTestTag<T>, fetch: FakeQueryFetch<T>)

Mocks the query process corresponding to QueryTestTag.

Parameters

testTag

The test tag that identifies this query

fetch

A function that mocks the query behavior


abstract fun <T, S> on(id: InfiniteQueryId<T, S>, fetch: FakeInfiniteQueryFetch<T, S>)

Mocks the query process corresponding to InfiniteQueryId.

Parameters

id

The infinite query ID that identifies this infinite query

fetch

A function that mocks the infinite query behavior


abstract fun <T, S> on(testTag: InfiniteQueryTestTag<T, S>, fetch: FakeInfiniteQueryFetch<T, S>)

Mocks the query process corresponding to InfiniteQueryTestTag.

Parameters

testTag

The test tag that identifies this infinite query

fetch

A function that mocks the infinite query behavior