| // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| return List.generate(x, (_) => 'xyzzy').join(' '); |
| Future<String> fooAsync(int x) async { |
| return List.generate(x, (_) => 'xyzzy').join(' '); |
| /// The number of covered lines is tested and expected to be 4. |
| /// If you modify this method, you may have to update the tests! |
| void isolateTask(dynamic threeThings) { |
| sleep(const Duration(milliseconds: 500)); |
| fooAsync(answer).then((_) { |
| final port = threeThings.first as SendPort; |
| final sum = (threeThings[1] + threeThings[2]) as int; |
| final bar = BarClass(123); |
| print('678'); // coverage:ignore-line |
| print('4 // coverage:ignore-line'); |
| print('5 // coverage:ignore-file'); |
| print('6'); // coverage:ignore-start |
| print('9'); // coverage:ignore-start |
| print('11'); // coverage:ignore-line |