Skip to main content

Module testing

Module testing 

Source
Expand description

Test/example support: an embedded media driver with RAII teardown.

Replaces the five-line launch incantation and two-line teardown that tests and examples previously copied everywhere. The driver stops and joins on Drop, so teardown ordering lives in exactly one place.

Structs§

EmbeddedDriver
An embedded media driver running on a background thread, with a unique directory, stopped and joined automatically on Drop.

Functions§

find_unused_udp_port
First free UDP port at or above start (binds a probe socket to check).