| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.operation.analysis; | 5 library test.operation.analysis; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/operation/operation_analysis.dart'; | 7 import 'package:analysis_server/src/operation/operation_analysis.dart'; |
| 8 import 'package:analysis_services/constants.dart'; | 8 import 'package:analysis_services/constants.dart'; |
| 9 import 'package:analysis_testing/mocks.dart'; | 9 import 'package:analysis_testing/mocks.dart'; |
| 10 import 'package:analysis_testing/reflective_tests.dart'; | 10 import 'package:analysis_testing/reflective_tests.dart'; |
| 11 import 'package:analyzer/src/generated/error.dart'; | 11 import 'package:analyzer/src/generated/error.dart'; |
| 12 import 'package:analyzer/src/generated/source.dart'; | 12 import 'package:analyzer/src/generated/source.dart'; |
| 13 import 'package:typed_mock/typed_mock.dart'; | 13 import 'package:typed_mock/typed_mock.dart'; |
| 14 import 'package:unittest/unittest.dart'; | 14 import 'package:unittest/unittest.dart'; |
| 15 | 15 |
| 16 | 16 |
| 17 main() { | 17 main() { |
| 18 groupSep = ' | '; | 18 groupSep = ' | '; |
| 19 | 19 runReflectiveTests(Test_errorToJson); |
| 20 group('errorToJson', () { | |
| 21 runReflectiveTests(Test_errorToJson); | |
| 22 }); | |
| 23 } | 20 } |
| 24 | 21 |
| 25 | 22 |
| 26 class AnalysisErrorMock extends TypedMock implements AnalysisError { | 23 class AnalysisErrorMock extends TypedMock implements AnalysisError { |
| 27 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 24 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 28 } | 25 } |
| 29 | 26 |
| 30 | 27 |
| 31 @ReflectiveTestCase() | 28 @ReflectiveTestCase() |
| 32 class Test_errorToJson { | 29 class Test_errorToJson { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 OFFSET: 10, | 91 OFFSET: 10, |
| 95 LENGTH: 20, | 92 LENGTH: 20, |
| 96 START_LINE: 3, | 93 START_LINE: 3, |
| 97 START_COLUMN: 2 | 94 START_COLUMN: 2 |
| 98 }, | 95 }, |
| 99 MESSAGE: 'my message', | 96 MESSAGE: 'my message', |
| 100 CORRECTION: 'my correction' | 97 CORRECTION: 'my correction' |
| 101 }); | 98 }); |
| 102 } | 99 } |
| 103 } | 100 } |
| OLD | NEW |