testing library

Classes

RequestHandler
Defines the interface for handling HTTP requests.
RequestHandlerBase
Convenience base class for handlers that primarily target in-memory tests.

Functions

serverTest(String description, TestCallback callback, {required RequestHandler handler, TransportMode transportMode = TransportMode.inMemory, Timeout? timeout, Object? skip, Object? tags, Map<String, dynamic>? onPlatform, int? retry, TransportOptions? options}) → void
Creates a test that uses an TestClient to test HTTP endpoints.

Typedefs

TestCallback = Future<void> Function(TestClient client, RequestHandler handler)
Callback type for test functions that use TestClient