testing library

Classes

RoutedRequestHandler
Adapter for the Routed Engine that conforms to the RequestHandler interface.

Functions

engineGroup(String description, {Engine? engine, required void define(Engine engine, TestClient client, EngineTestFunction ), TransportMode transportMode = TransportMode.inMemory, Map<String, dynamic>? configItems, EngineConfig? engineConfig, List<EngineOpt>? options}) → void
Creates a group of tests with shared engine configuration
engineTest(String description, TestCallback callback, {Engine? engine, TransportMode transportMode = TransportMode.inMemory, Map<String, dynamic>? configItems, EngineConfig? engineConfig, List<EngineOpt>? options, bool autoCloseEngine = false}) → void
Defines a single test that runs with a dedicated Engine and TestClient.

Typedefs

EngineTestFunction = void Function(String description, TestCallback callback)
A callback function used by the engineGroup helper to define tests within the group. It receives the shared Engine and TestClient instances, and a function (engineTest) which should be used to define individual tests within the group.
TestCallback = Future<void> Function(Engine engine, TestClient client)
A callback function used by the engineTest helper. It receives the Engine and TestClient instances for the test.