test<T> method
Implementation
Future<T?> test<T>(
String name,
Future<T> Function() fn, {
bool skipWhenNull = false,
}) async {
try {
if (skipWhenNull) {
_showSkip(name);
return null;
}
var value = await fn();
_showAction(name);
return value;
} catch (e) {
_showError(name);
loggy.error('$name\n');
loggy.error(e);
}
return null;
}