mockk
1.13.1
common
mockk
/
io.mockk
/
withInstanceFactory
with
Instance
Factory
common
inline
fun
<
T
:
Any
,
R
>
withInstanceFactory
(
noinline
instanceFactory
:
(
)
->
T
,
block
:
(
)
->
R
)
:
R
Content copied to clipboard
Executes block of code with registering and unregistering instance factory.