pub async fn mock_component<S, Event>(
sender: Sender<Event>,
handles: LocalComponentHandles,
) -> Result<(), Error>
Expand description
A mock component that provides the generic service S
. The request stream
of the service is processed and any requests relayed to the provided sender
.