Download flutter/packages/integration_test/test/data/pass_test_script.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 874 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/integration_test/test/data/pass_test_script.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/packages/integration_test/test/data/pass_test_script.dart
-
curl -L -o pass_test_script.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/integration_test/test/data/pass_test_script.dart
874 Bytes
| // 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:convert'; | |
| import 'package:flutter_test/flutter_test.dart'; | |
| import 'package:integration_test/integration_test.dart'; | |
| Future<void> main() async { | |
| final IntegrationTestWidgetsFlutterBinding binding = | |
| IntegrationTestWidgetsFlutterBinding.ensureInitialized(); | |
| binding.allTestsPassed.future.then((_) { | |
| // We use this print to communicate with ../binding_fail_test.dart | |
| // ignore: avoid_print | |
| print('IntegrationTestWidgetsFlutterBinding test results: ${jsonEncode(binding.results)}'); | |
| }); | |
| testWidgets('passing test 1', (WidgetTester tester) async { | |
| expect(true, true); | |
| }); | |
| testWidgets('passing test 2', (WidgetTester tester) async { | |
| expect(true, true); | |
| }); | |
| } | |