Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Side by Side Diff: lib/src/backend/suite_entry.dart

Issue 1379203002: Refactor groups to pipe them through to the runner. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/backend/suite.dart ('k') | lib/src/backend/test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « lib/src/backend/suite.dart ('k') | lib/src/backend/test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698