[doc] Fix module_test_ios comments (#131470)

This commit is contained in:
Daco Harkes 2023-07-31 13:05:11 +02:00 committed by GitHub
parent c05c3d3930
commit fceaa005cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,8 +27,8 @@ Future<void> main() async {
},
);
// this variable cannot be `late`, as we reference it in the `finally` block
// which may execute before this field has been initialized
// This variable cannot be `late`, as we reference it in the `finally` block
// which may execute before this field has been initialized.
String? simulatorDeviceId;
section('Create Flutter module project');
@ -51,7 +51,7 @@ Future<void> main() async {
final Directory flutterModuleLibSource = Directory(path.join(flutterDirectory.path, 'dev', 'integration_tests', 'ios_host_app', 'flutterapp', 'lib'));
final Directory flutterModuleLibDestination = Directory(path.join(projectDir.path, 'lib'));
// These test files don't have a .dart prefix so the analyzer will ignore them. They aren't in a
// These test files don't have a .dart extension so the analyzer will ignore them. They aren't in a
// package and don't work on their own outside of the test module just created.
final File main = File(path.join(flutterModuleLibSource.path, 'main'));
main.copySync(path.join(flutterModuleLibDestination.path, 'main.dart'));