OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 /// Collects the configurations for all status files in the 'tests' folder that | 5 /// Collects the configurations for all status files in the 'tests' folder that |
6 /// mention one of the test names given as argument. | 6 /// mention one of the test names given as argument. |
7 | 7 |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 import 'dart:math' hide log; | 9 import 'dart:math' hide log; |
10 import 'dart:io'; | 10 import 'dart:io'; |
11 | 11 |
12 import 'src/util.dart'; | 12 import 'package:gardening/src/util.dart'; |
13 | 13 |
14 main(List<String> args) async { | 14 main(List<String> args) async { |
15 if (args.length == 0) { | 15 if (args.length == 0) { |
16 print('Usage: status_summary <test-name1> [<test-name2> ...]'); | 16 print('Usage: status_summary <test-name1> [<test-name2> ...]'); |
17 exit(1); | 17 exit(1); |
18 } | 18 } |
19 int maxStatusWidth = 0; | 19 int maxStatusWidth = 0; |
20 int maxConfigWidth = 0; | 20 int maxConfigWidth = 0; |
21 | 21 |
22 List<Uri> statusFiles = await findStatusFiles('tests'); | 22 List<Uri> statusFiles = await findStatusFiles('tests'); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 /// The status of the entry, e.g. `Pass, Slow`. | 102 /// The status of the entry, e.g. `Pass, Slow`. |
103 final String status; | 103 final String status; |
104 | 104 |
105 /// The comment after the status, if any. | 105 /// The comment after the status, if any. |
106 final String comment; | 106 final String comment; |
107 | 107 |
108 StatusEntry(this.config, this.status, this.comment); | 108 StatusEntry(this.config, this.status, this.comment); |
109 | 109 |
110 String toString() => '$status $config $comment'; | 110 String toString() => '$status $config $comment'; |
111 } | 111 } |
OLD | NEW |