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

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

Issue 1704183002: pkg/test: cleanup imports (Closed) Base URL: https://github.com/dart-lang/test.git@master
Patch Set: Created 4 years, 10 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/group.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
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.dart';
5 import 'metadata.dart'; 6 import 'metadata.dart';
6 import 'operating_system.dart'; 7 import 'operating_system.dart';
7 import 'group.dart';
8 import 'test.dart'; 8 import 'test.dart';
9 import 'test_platform.dart'; 9 import 'test_platform.dart';
10 10
11 /// A test suite. 11 /// A test suite.
12 /// 12 ///
13 /// A test suite is a set of tests that are intended to be run together and that 13 /// A test suite is a set of tests that are intended to be run together and that
14 /// share default configuration. 14 /// share default configuration.
15 class Suite { 15 class Suite {
16 /// The platform on which the suite is running, or `null` if that platform is 16 /// The platform on which the suite is running, or `null` if that platform is
17 /// unknown. 17 /// unknown.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 /// Returns a new suite with all tests matching [test] removed. 64 /// Returns a new suite with all tests matching [test] removed.
65 /// 65 ///
66 /// Unlike [GroupEntry.filter], this never returns `null`. If all entries are 66 /// Unlike [GroupEntry.filter], this never returns `null`. If all entries are
67 /// filtered out, it returns an empty suite. 67 /// filtered out, it returns an empty suite.
68 Suite filter(bool callback(Test test)) { 68 Suite filter(bool callback(Test test)) {
69 var filtered = group.filter(callback); 69 var filtered = group.filter(callback);
70 if (filtered == null) filtered = new Group.root([], metadata: metadata); 70 if (filtered == null) filtered = new Group.root([], metadata: metadata);
71 return new Suite(filtered, platform: platform, os: os, path: path); 71 return new Suite(filtered, platform: platform, os: os, path: path);
72 } 72 }
73 } 73 }
OLDNEW
« no previous file with comments | « lib/src/backend/group.dart ('k') | lib/src/backend/test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698