Download flutter/packages/flutter_tools/lib/src/test/test_wrapper.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/flutter_tools/lib/src/test/test_wrapper.dart
- Command line
-
hf download hf://luom2645/agent-workspace@7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/flutter_tools/lib/src/test/test_wrapper.dart
-
curl -L -o test_wrapper.dart https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/flutter_tools/lib/src/test/test_wrapper.dart
1.18 kB
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'dart:async'; | |
| import 'package:test_core/src/executable.dart' as test; // ignore: implementation_imports | |
| import 'package:test_core/src/platform.dart' as hack show registerPlatformPlugin; // ignore: implementation_imports | |
| import 'package:test_core/src/platform.dart'; // ignore: implementation_imports | |
| export 'package:test_api/backend.dart' show Runtime; | |
| export 'package:test_core/src/platform.dart' show PlatformPlugin; | |
| abstract class TestWrapper { | |
| const factory TestWrapper() = _DefaultTestWrapper; | |
| Future<void> main(List<String> args); | |
| void registerPlatformPlugin(Iterable<Runtime> runtimes, FutureOr<PlatformPlugin> Function() platforms); | |
| } | |
| class _DefaultTestWrapper implements TestWrapper { | |
| const _DefaultTestWrapper(); | |
| Future<void> main(List<String> args) async { | |
| await test.main(args); | |
| } | |
| void registerPlatformPlugin(Iterable<Runtime> runtimes, FutureOr<PlatformPlugin> Function() platforms) { | |
| hack.registerPlatformPlugin(runtimes, platforms); | |
| } | |
| } | |