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.services.linter; | 5 library test.services.linter; |
6 | 6 |
7 import 'package:analysis_server/src/services/linter/linter.dart'; | |
8 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
9 import 'package:analyzer/source/analysis_options_provider.dart'; | 8 import 'package:analyzer/source/analysis_options_provider.dart'; |
10 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
11 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
| 11 import 'package:analyzer/src/lint/options_rule_validator.dart'; |
12 import 'package:linter/src/rules.dart'; | 12 import 'package:linter/src/rules.dart'; |
13 import 'package:test/test.dart'; | 13 import 'package:test/test.dart'; |
14 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 14 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
15 | 15 |
16 main() { | 16 main() { |
17 defineReflectiveSuite(() { | 17 defineReflectiveSuite(() { |
18 defineReflectiveTests(LinterRuleOptionsValidatorTest); | 18 defineReflectiveTests(LinterRuleOptionsValidatorTest); |
19 }); | 19 }); |
20 } | 20 } |
21 | 21 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 validator.validate(reporter, options); | 80 validator.validate(reporter, options); |
81 expect(errors.map((AnalysisError e) => e.errorCode), | 81 expect(errors.map((AnalysisError e) => e.errorCode), |
82 unorderedEquals(expected)); | 82 unorderedEquals(expected)); |
83 } | 83 } |
84 } | 84 } |
85 | 85 |
86 class _TestSource implements Source { | 86 class _TestSource implements Source { |
87 @override | 87 @override |
88 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 88 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
89 } | 89 } |
OLD | NEW |