| 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 analyzer_cli.test.options; | 5 library analyzer_cli.test.options; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:analyzer_cli/src/driver.dart'; | 9 import 'package:analyzer_cli/src/analyzer_driver.dart'; |
| 10 import 'package:analyzer_cli/src/options.dart'; | 10 import 'package:analyzer_cli/src/analyzer_options.dart'; |
| 11 import 'package:test/test.dart'; | 11 import 'package:test/test.dart'; |
| 12 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 12 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 13 | 13 |
| 14 main() { | 14 main() { |
| 15 group('CommandLineOptions', () { | 15 group('CommandLineOptions', () { |
| 16 group('parse', () { | 16 group('parse', () { |
| 17 test('defaults', () { | 17 test('defaults', () { |
| 18 CommandLineOptions options = | 18 CommandLineOptions options = |
| 19 CommandLineOptions.parse(['--dart-sdk', '.', 'foo.dart']); | 19 CommandLineOptions.parse(['--dart-sdk', '.', 'foo.dart']); |
| 20 expect(options, isNotNull); | 20 expect(options, isNotNull); |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 'package:p/foo.dart|/path/to/p/lib/foo.dart' | 368 'package:p/foo.dart|/path/to/p/lib/foo.dart' |
| 369 ]); | 369 ]); |
| 370 expect(options.buildMode, isTrue); | 370 expect(options.buildMode, isTrue); |
| 371 expect(options.buildSuppressExitCode, isTrue); | 371 expect(options.buildSuppressExitCode, isTrue); |
| 372 } | 372 } |
| 373 | 373 |
| 374 void _parse(List<String> args) { | 374 void _parse(List<String> args) { |
| 375 options = CommandLineOptions.parse(args); | 375 options = CommandLineOptions.parse(args); |
| 376 } | 376 } |
| 377 } | 377 } |
| OLD | NEW |