| 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 /** Macro tokens that are expanded in pipeline jobs and test messages. */ | |
| 6 class Macros { | |
| 7 // Parts of the test file path. | |
| 8 static const String fullFilePath = '<FULLFILEPATH>'; | |
| 9 static const String filename = '<FILENAME>'; | |
| 10 static const String filenameNoExtension = '<FILENAMENOEXT>'; | |
| 11 static const String directory = '<DIRECTORY>'; | |
| 12 | |
| 13 // A verson of the directory that is flattened to be like a filename, | |
| 14 // by replacing path separators with underscores and removing special | |
| 15 // characters. | |
| 16 static const String flattenedDirectory = '<FLATDIR>'; | |
| 17 | |
| 18 // Test result message components. These can be used to specify a | |
| 19 // format for the test result or listing messages. Note that if an | |
| 20 // actual value is empty, the replacement string will be empty, but if | |
| 21 // the value is non-empty, the replacement string will be the value | |
| 22 // followed by space. Thus: | |
| 23 // | |
| 24 // '<MESSAGE><STACK>' | |
| 25 // | |
| 26 // would be expanded to an empty string if neither of these are set, but | |
| 27 // if both are set, they will be separated by a space (and there will be | |
| 28 // a trailing space). If only <STACK> is set, then this will expand to | |
| 29 // the stack trace with no leading space but with a trailing space. | |
| 30 static const String testTime = '<TIME>'; | |
| 31 static const String testfile = '<FILENAME>'; | |
| 32 static const String testGroup = '<GROUPNAME>'; | |
| 33 static const String testDescription = '<TESTNAME>'; | |
| 34 static const String testMessage = '<MESSAGE>'; | |
| 35 static const String testStacktrace = '<STACK>'; | |
| 36 } | |
| OLD | NEW |