mockExecuteNullable

inline fun <ARGS : Any, RETURN_VALUE, USE_CASE : FlowUseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(args: ARGS?, returnBlock: () -> Flow<RETURN_VALUE>)
inline fun <ARGS : Any, RETURN_VALUE, USE_CASE : UseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(args: ARGS?, crossinline returnBlock: () -> RETURN_VALUE)

Mock CoroutineScopeOwner.execute method for use cases with nullable input argument.

When the execute method will be called then the argument passed in returnBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called.

Usage: mockUseCase.mockExecute(args = ...) { ... }

inline fun <ARGS : Any, RETURN_VALUE, USE_CASE : FlowUseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(returnBlock: () -> Flow<RETURN_VALUE>)
inline fun <ARGS : Any, RETURN_VALUE, USE_CASE : UseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(crossinline returnBlock: () -> RETURN_VALUE)

Mock CoroutineScopeOwner.execute method for use cases with nullable input argument and any() matcher argument used as input argument.

When the execute method will be called then the argument passed in returnBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called.

Usage: mockUseCase.mockExecute { ... }