| Index: pkg/analyzer_cli/test/driver_test.dart
|
| diff --git a/pkg/analyzer_cli/test/driver_test.dart b/pkg/analyzer_cli/test/driver_test.dart
|
| index f3133555071eb655b13803f5f65c6edab44fb297..5a3085e52434bcec1cce00e7ee9b7fb404e99501 100644
|
| --- a/pkg/analyzer_cli/test/driver_test.dart
|
| +++ b/pkg/analyzer_cli/test/driver_test.dart
|
| @@ -24,7 +24,18 @@ import 'package:yaml/src/yaml_node.dart';
|
| // TODO(pq): fix tests to run safely on the bots
|
| // https://github.com/dart-lang/sdk/issues/25001
|
| main() {}
|
| -_main() {
|
| +const emptyOptionsFile = 'test/data/empty_options.yaml';
|
| +
|
| +/// Start a driver for the given [source], optionally providing additional
|
| +/// [args] and an [options] file path. The value of [options] defaults to
|
| +/// an empty options file to avoid unwanted configuration from an otherwise
|
| +/// discovered options file.
|
| +void drive(String source,
|
| + {String options: emptyOptionsFile,
|
| + List<String> args: const <String>[]}) =>
|
| + new Driver().start(['--options', options, source]..addAll(args));
|
| +
|
| +not_main() {
|
| group('Driver', () {
|
| StringSink savedOutSink, savedErrorSink;
|
| int savedExitCode;
|
| @@ -430,17 +441,6 @@ main() {}
|
| });
|
| }
|
|
|
| -const emptyOptionsFile = 'test/data/empty_options.yaml';
|
| -
|
| -/// Start a driver for the given [source], optionally providing additional
|
| -/// [args] and an [options] file path. The value of [options] defaults to
|
| -/// an empty options file to avoid unwanted configuration from an otherwise
|
| -/// discovered options file.
|
| -void drive(String source,
|
| - {String options: emptyOptionsFile,
|
| - List<String> args: const <String>[]}) =>
|
| - new Driver().start(['--options', options, source]..addAll(args));
|
| -
|
| Map<String, YamlNode> parseOptions(String src) =>
|
| new AnalysisOptionsProvider().getOptionsFromString(src);
|
|
|
|
|