OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
| 5 import 'group_entry.dart'; |
5 import 'metadata.dart'; | 6 import 'metadata.dart'; |
6 import 'operating_system.dart'; | 7 import 'operating_system.dart'; |
7 import 'group_entry.dart'; | |
8 import 'test.dart'; | 8 import 'test.dart'; |
9 import 'test_platform.dart'; | 9 import 'test_platform.dart'; |
10 | 10 |
11 /// A group contains one or more tests and subgroups. | 11 /// A group contains one or more tests and subgroups. |
12 /// | 12 /// |
13 /// It includes metadata that applies to all contained tests. | 13 /// It includes metadata that applies to all contained tests. |
14 class Group implements GroupEntry { | 14 class Group implements GroupEntry { |
15 final String name; | 15 final String name; |
16 | 16 |
17 final Metadata metadata; | 17 final Metadata metadata; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 /// Returns the entries of this group mapped using [callback]. | 66 /// Returns the entries of this group mapped using [callback]. |
67 /// | 67 /// |
68 /// Any `null` values returned by [callback] will be removed. | 68 /// Any `null` values returned by [callback] will be removed. |
69 List<GroupEntry> _map(GroupEntry callback(GroupEntry entry)) { | 69 List<GroupEntry> _map(GroupEntry callback(GroupEntry entry)) { |
70 return entries | 70 return entries |
71 .map((entry) => callback(entry)) | 71 .map((entry) => callback(entry)) |
72 .where((entry) => entry != null) | 72 .where((entry) => entry != null) |
73 .toList(); | 73 .toList(); |
74 } | 74 } |
75 } | 75 } |
OLD | NEW |