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