Enable use_function_type_syntax_for_parameters lint (#77163)
This commit is contained in:
committed by
GitHub
parent
8f9c6af2dd
commit
7b251f5f37
@@ -7,7 +7,7 @@ import 'dart:async';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
Future<void> testExecutable(FutureOr<void> testMain()) async {
|
||||
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
|
||||
reportTestException = (FlutterErrorDetails details, String testDescription) {
|
||||
expect(details.exception, isA<StateError>());
|
||||
expect((details.exception as StateError).message, 'foo');
|
||||
|
||||
@@ -52,7 +52,7 @@ void main() {
|
||||
return path.replaceAll('/', fs.path.separator);
|
||||
}
|
||||
|
||||
void test(String description, FutureOr<void> body()) {
|
||||
void test(String description, FutureOr<void> Function() body) {
|
||||
test_package.test(description, () async {
|
||||
await io.IOOverrides.runZoned<FutureOr<void>>(
|
||||
body,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
Future<void> testExecutable(FutureOr<void> testMain()) async {
|
||||
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
|
||||
await runZoned<dynamic>(testMain, zoneValues: <Type, String>{
|
||||
String: '/test_config',
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
Future<void> testExecutable(FutureOr<void> testMain()) async {
|
||||
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
|
||||
await runZoned<dynamic>(testMain, zoneValues: <Type, dynamic>{
|
||||
String: '/test_config/nested_config',
|
||||
int: 123,
|
||||
|
||||
Reference in New Issue
Block a user