OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012, 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 // A test execution pipeline is made up of a list of tasks. Each task is a | |
6 // subclass of [PipelineTask]. | |
7 abstract class PipelineTask { | |
8 | |
9 abstract void execute(Path testfile, List stdout, List stderr, | |
10 bool verboseLogging, Function exitHandler); | |
11 | |
12 // This takes a string used in a template and does macro expansion for | |
13 // a specific test file. | |
14 String concretize(String template, Path testfile) { | |
Siggi Cherem (dart-lang)
2012/08/29 01:05:55
rename ideas: concretize =>
- instantiate
- subs
gram
2012/08/29 20:12:26
Done.
| |
15 return template. | |
16 replaceAll(Meta.fullFilePath, testfile.toNativePath()). | |
17 replaceAll(Meta.filenameNoExtension, testfile.filenameWithoutExtension). | |
18 replaceAll(Meta.filename, testfile.filename). | |
19 replaceAll(Meta.directory, testfile.directoryPath.toString()); | |
20 } | |
21 } | |
22 | |
23 | |
OLD | NEW |