OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 library test.backend.test_or_group; | |
6 | |
7 import 'metadata.dart'; | |
8 import 'operating_system.dart'; | |
9 import 'test.dart'; | |
10 import 'test_platform.dart'; | |
11 | |
12 /// A [Test] or [Group]. | |
13 abstract class SuiteEntry { | |
14 /// The name of the entry, includes the prefixes from any containing [Group]s. | |
15 String get name; | |
16 | |
17 /// The metadata for the entry, including the metadata from any containing | |
18 /// [Group]s and the test suite. | |
19 Metadata get metadata; | |
20 | |
21 /// Returns a copy of [this] with all platform-specific metadata resolved. | |
22 /// | |
23 /// Removes any tests and groups with [Metadata.testOn] selectors that don't | |
24 /// match [platform] and [selector]. Returns `null` if this entry's selector | |
25 /// doesn't match. | |
26 SuiteEntry forPlatform(TestPlatform platform, {OperatingSystem os}); | |
27 | |
28 /// Returns a copy of [this] with all tests that don't match [callback] | |
29 /// removed. | |
30 /// | |
31 /// Returns `null` if this is a test that doesn't match [callback] or a group | |
32 /// where no child tests match [callback]. | |
33 SuiteEntry filter(bool callback(Test test)); | |
34 } | |
OLD | NEW |