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/driver.dart'; |
10 import 'package:analyzer_cli/src/options.dart'; | 10 import 'package:analyzer_cli/src/options.dart'; |
(...skipping 14 matching lines...) Expand all Loading... |
25 expect(options.buildSummaryInputs, isEmpty); | 25 expect(options.buildSummaryInputs, isEmpty); |
26 expect(options.buildSummaryOnly, isFalse); | 26 expect(options.buildSummaryOnly, isFalse); |
27 expect(options.buildSummaryOutput, isNull); | 27 expect(options.buildSummaryOutput, isNull); |
28 expect(options.buildSuppressExitCode, isFalse); | 28 expect(options.buildSuppressExitCode, isFalse); |
29 expect(options.dartSdkPath, isNotNull); | 29 expect(options.dartSdkPath, isNotNull); |
30 expect(options.disableHints, isFalse); | 30 expect(options.disableHints, isFalse); |
31 expect(options.lints, isFalse); | 31 expect(options.lints, isFalse); |
32 expect(options.displayVersion, isFalse); | 32 expect(options.displayVersion, isFalse); |
33 expect(options.enableStrictCallChecks, isFalse); | 33 expect(options.enableStrictCallChecks, isFalse); |
34 expect(options.enableSuperMixins, isFalse); | 34 expect(options.enableSuperMixins, isFalse); |
35 expect(options.enableConditionalDirectives, isFalse); | |
36 expect(options.enableTypeChecks, isFalse); | 35 expect(options.enableTypeChecks, isFalse); |
37 expect(options.hintsAreFatal, isFalse); | 36 expect(options.hintsAreFatal, isFalse); |
38 expect(options.ignoreUnrecognizedFlags, isFalse); | 37 expect(options.ignoreUnrecognizedFlags, isFalse); |
39 expect(options.log, isFalse); | 38 expect(options.log, isFalse); |
40 expect(options.machineFormat, isFalse); | 39 expect(options.machineFormat, isFalse); |
41 expect(options.packageRootPath, isNull); | 40 expect(options.packageRootPath, isNull); |
42 expect(options.shouldBatch, isFalse); | 41 expect(options.shouldBatch, isFalse); |
43 expect(options.showPackageWarnings, isFalse); | 42 expect(options.showPackageWarnings, isFalse); |
44 expect(options.showSdkWarnings, isFalse); | 43 expect(options.showSdkWarnings, isFalse); |
45 expect(options.sourceFiles, equals(['foo.dart'])); | 44 expect(options.sourceFiles, equals(['foo.dart'])); |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 'package:p/foo.dart|/path/to/p/lib/foo.dart' | 312 'package:p/foo.dart|/path/to/p/lib/foo.dart' |
314 ]); | 313 ]); |
315 expect(options.buildMode, isTrue); | 314 expect(options.buildMode, isTrue); |
316 expect(options.buildSuppressExitCode, isTrue); | 315 expect(options.buildSuppressExitCode, isTrue); |
317 } | 316 } |
318 | 317 |
319 void _parse(List<String> args) { | 318 void _parse(List<String> args) { |
320 options = CommandLineOptions.parse(args); | 319 options = CommandLineOptions.parse(args); |
321 } | 320 } |
322 } | 321 } |
OLD | NEW |