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.search.search_result; | |
6 | |
7 import 'package:analysis_server/src/protocol_server.dart'; | 5 import 'package:analysis_server/src/protocol_server.dart'; |
8 import 'package:analysis_server/src/services/search/search_engine.dart'; | 6 import 'package:analysis_server/src/services/search/search_engine.dart'; |
9 import 'package:test/test.dart'; | 7 import 'package:test/test.dart'; |
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 8 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
11 | 9 |
12 main() { | 10 main() { |
13 defineReflectiveSuite(() { | 11 defineReflectiveSuite(() { |
14 defineReflectiveTests(SearchResultKindTest); | 12 defineReflectiveTests(SearchResultKindTest); |
15 }); | 13 }); |
16 } | 14 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 SearchResultKind.INVOCATION); | 46 SearchResultKind.INVOCATION); |
49 expect(new SearchResultKind(SearchResultKind.UNKNOWN.name), | 47 expect(new SearchResultKind(SearchResultKind.UNKNOWN.name), |
50 SearchResultKind.UNKNOWN); | 48 SearchResultKind.UNKNOWN); |
51 } | 49 } |
52 | 50 |
53 void test_toString() { | 51 void test_toString() { |
54 expect(SearchResultKind.DECLARATION.toString(), | 52 expect(SearchResultKind.DECLARATION.toString(), |
55 'SearchResultKind.DECLARATION'); | 53 'SearchResultKind.DECLARATION'); |
56 } | 54 } |
57 } | 55 } |
OLD | NEW |