| 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 test.src.plugin.plugin_config_test; | 5 library analyzer.test.src.plugin.plugin_config_test; |
| 6 | 6 |
| 7 import 'package:analyzer/source/analysis_options_provider.dart'; | 7 import 'package:analyzer/source/analysis_options_provider.dart'; |
| 8 import 'package:analyzer/src/plugin/plugin_configuration.dart'; | 8 import 'package:analyzer/src/plugin/plugin_configuration.dart'; |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 10 import 'package:yaml/yaml.dart'; | 10 import 'package:yaml/yaml.dart'; |
| 11 | 11 |
| 12 main() { | 12 main() { |
| 13 group('plugin config tests', () { | 13 group('plugin config tests', () { |
| 14 group('parsing', () { | 14 group('parsing', () { |
| 15 test('plugin map', () { | 15 test('plugin map', () { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 }); | 118 }); |
| 119 } | 119 } |
| 120 | 120 |
| 121 PluginConfig parseConfig(String optionsSrc) { | 121 PluginConfig parseConfig(String optionsSrc) { |
| 122 var options = new AnalysisOptionsProvider().getOptionsFromString(optionsSrc); | 122 var options = new AnalysisOptionsProvider().getOptionsFromString(optionsSrc); |
| 123 return new PluginConfig.fromOptions(options); | 123 return new PluginConfig.fromOptions(options); |
| 124 } | 124 } |
| 125 | 125 |
| 126 List<PluginInfo> pluginsSortedByName(Iterable<PluginInfo> plugins) => | 126 List<PluginInfo> pluginsSortedByName(Iterable<PluginInfo> plugins) => |
| 127 plugins.toList()..sort((p1, p2) => p1.name.compareTo(p2.name)); | 127 plugins.toList()..sort((p1, p2) => p1.name.compareTo(p2.name)); |
| OLD | NEW |