Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: pkg/analyzer_cli/test/options_test.dart

Issue 2840703002: Refactoring analyzer_cli for code hygiene. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698