| Index: packages/analyzer/test/source/config_test.dart
|
| diff --git a/packages/analyzer/test/source/config_test.dart b/packages/analyzer/test/source/config_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ccbc05611554affa04a192c5fd6aedfdf18733f8
|
| --- /dev/null
|
| +++ b/packages/analyzer/test/source/config_test.dart
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +import 'package:analyzer/source/config.dart';
|
| +import 'package:unittest/unittest.dart';
|
| +import 'package:yaml/yaml.dart';
|
| +
|
| +main() {
|
| + group('Analysis Config', () {
|
| + test('parseConfigSource', () {
|
| + String source = r'''
|
| +analyzer:
|
| + configuration: google/strict
|
| +''';
|
| + YamlMap options = loadYamlNode(source);
|
| + AnalysisConfigurationDescriptor descriptor =
|
| + new AnalysisConfigurationDescriptor.fromAnalyzerOptions(
|
| + options['analyzer']);
|
| + expect(descriptor.package, 'google');
|
| + expect(descriptor.pragma, 'strict');
|
| + });
|
| + });
|
| +}
|
|
|