testServer function
- @isTest
Implementation
@isTest
void testServer(
String description,
FutureOr<void> Function(ServerTester tester) callback, {
bool? skip,
Timeout? timeout,
Object? tags,
}) {
test(
description,
() async {
final tester = ServerTester._();
tester._start();
await callback(tester);
},
skip: skip,
timeout: timeout,
tags: tags,
);
}