Module test_utils

Source
Expand description

Helpers for writing tests involving channels.

Structs§

DropSender
Implements a cloneable object that will send only one message on an mpsc::Sender when its ‘last’ clone is dropped. It will assert if an attempt to re-clone an already cloned DropSender happens, ensuring that the object is only cloned in a linear path.