CallRecorder
Records values, such as arguments passed to a faked dependency, in the order calls arrive.
Recording never suspends, so it is safe from synchronous callbacks and from any thread. Finish the operation under test before inspecting values; calls racing on different threads are ordered by whichever records first.
val recorder = CallRecorder<String>()
val client = FakeClient(onRequest = recorder::record)Content copied to clipboard
Functions
Link copied to clipboard
Clears the history; pending waitForCalls calls observe the new history.
Link copied to clipboard