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_entry; | |
6 | |
7 import 'metadata.dart'; | 5 import 'metadata.dart'; |
8 import 'operating_system.dart'; | 6 import 'operating_system.dart'; |
9 import 'test.dart'; | 7 import 'test.dart'; |
10 import 'test_platform.dart'; | 8 import 'test_platform.dart'; |
11 | 9 |
12 /// A [Test] or [Group]. | 10 /// A [Test] or [Group]. |
13 abstract class GroupEntry { | 11 abstract class GroupEntry { |
14 /// The name of the entry, including the prefixes from any containing | 12 /// The name of the entry, including the prefixes from any containing |
15 /// [Group]s. | 13 /// [Group]s. |
16 /// | 14 /// |
(...skipping 11 matching lines...) Expand all Loading... |
28 /// doesn't match. | 26 /// doesn't match. |
29 GroupEntry forPlatform(TestPlatform platform, {OperatingSystem os}); | 27 GroupEntry forPlatform(TestPlatform platform, {OperatingSystem os}); |
30 | 28 |
31 /// Returns a copy of [this] with all tests that don't match [callback] | 29 /// Returns a copy of [this] with all tests that don't match [callback] |
32 /// removed. | 30 /// removed. |
33 /// | 31 /// |
34 /// Returns `null` if this is a test that doesn't match [callback] or a group | 32 /// Returns `null` if this is a test that doesn't match [callback] or a group |
35 /// where no child tests match [callback]. | 33 /// where no child tests match [callback]. |
36 GroupEntry filter(bool callback(Test test)); | 34 GroupEntry filter(bool callback(Test test)); |
37 } | 35 } |
OLD | NEW |