| 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 library test.backend.group; | |
| 6 | |
| 7 import 'metadata.dart'; | 5 import 'metadata.dart'; |
| 8 import 'operating_system.dart'; | 6 import 'operating_system.dart'; |
| 9 import 'group_entry.dart'; | 7 import 'group_entry.dart'; |
| 10 import 'test.dart'; | 8 import 'test.dart'; |
| 11 import 'test_platform.dart'; | 9 import 'test_platform.dart'; |
| 12 | 10 |
| 13 /// A group contains one or more tests and subgroups. | 11 /// A group contains one or more tests and subgroups. |
| 14 /// | 12 /// |
| 15 /// It includes metadata that applies to all contained tests. | 13 /// It includes metadata that applies to all contained tests. |
| 16 class Group implements GroupEntry { | 14 class Group implements GroupEntry { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 /// Returns the entries of this group mapped using [callback]. | 57 /// Returns the entries of this group mapped using [callback]. |
| 60 /// | 58 /// |
| 61 /// Any `null` values returned by [callback] will be removed. | 59 /// Any `null` values returned by [callback] will be removed. |
| 62 List<GroupEntry> _map(GroupEntry callback(GroupEntry entry)) { | 60 List<GroupEntry> _map(GroupEntry callback(GroupEntry entry)) { |
| 63 return entries | 61 return entries |
| 64 .map((entry) => callback(entry)) | 62 .map((entry) => callback(entry)) |
| 65 .where((entry) => entry != null) | 63 .where((entry) => entry != null) |
| 66 .toList(); | 64 .toList(); |
| 67 } | 65 } |
| 68 } | 66 } |
| OLD | NEW |