OLD | NEW |
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 library server.driver; | 5 library server.driver; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:math' show max, sqrt; | 8 import 'dart:math' show max, sqrt; |
9 | 9 |
10 import 'package:analyzer/src/generated/engine.dart' as engine; | 10 import 'package:analyzer/src/generated/engine.dart' as engine; |
11 import 'package:logging/logging.dart'; | 11 import 'package:logging/logging.dart'; |
12 | 12 |
13 import '../integration/integration_test_methods.dart'; | 13 import '../../test/integration/integration_test_methods.dart'; |
14 import '../integration/integration_tests.dart'; | 14 import '../../test/integration/integration_tests.dart'; |
15 import 'operation.dart'; | 15 import 'operation.dart'; |
16 | 16 |
17 final SPACE = ' '.codeUnitAt(0); | 17 final SPACE = ' '.codeUnitAt(0); |
18 | 18 |
19 void _printColumn(StringBuffer sb, String text, int keyLen, | 19 void _printColumn(StringBuffer sb, String text, int keyLen, |
20 {bool rightJustified: false}) { | 20 {bool rightJustified: false}) { |
21 if (!rightJustified) { | 21 if (!rightJustified) { |
22 sb.write(text); | 22 sb.write(text); |
23 sb.write(','); | 23 sb.write(','); |
24 } | 24 } |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 int totalUnexpectedResultCount) { | 308 int totalUnexpectedResultCount) { |
309 StringBuffer sb = new StringBuffer(); | 309 StringBuffer sb = new StringBuffer(); |
310 _printColumn(sb, 'Totals', keyLen); | 310 _printColumn(sb, 'Totals', keyLen); |
311 _printColumn(sb, totalCount.toString(), 6, rightJustified: true); | 311 _printColumn(sb, totalCount.toString(), 6, rightJustified: true); |
312 _printColumn(sb, totalErrorCount.toString(), 6, rightJustified: true); | 312 _printColumn(sb, totalErrorCount.toString(), 6, rightJustified: true); |
313 _printColumn(sb, totalUnexpectedResultCount.toString(), 6, | 313 _printColumn(sb, totalUnexpectedResultCount.toString(), 6, |
314 rightJustified: true); | 314 rightJustified: true); |
315 print(sb.toString()); | 315 print(sb.toString()); |
316 } | 316 } |
317 } | 317 } |
OLD | NEW |