| Index: pkg/analyzer/test/src/summary/incremental_cache_test.dart
|
| diff --git a/pkg/analyzer/test/src/summary/incremental_cache_test.dart b/pkg/analyzer/test/src/summary/incremental_cache_test.dart
|
| index bbdeedfe4622694b5a3da4cc96a5405c1b88497f..695cb51ac3e76f06ff0210ea8bfa6ccb6f9de2e6 100644
|
| --- a/pkg/analyzer/test/src/summary/incremental_cache_test.dart
|
| +++ b/pkg/analyzer/test/src/summary/incremental_cache_test.dart
|
| @@ -121,6 +121,25 @@ main() {}
|
| expect(bundles, isNotNull);
|
| }
|
|
|
| + void test_getLibraryParts_hasParts() {
|
| + Source part1Source = addSource('/part1.dart', r'part of test;');
|
| + Source part2Source = addSource('/part2.dart', r'part of test;');
|
| + putTestLibrary(r'''
|
| +library test;
|
| +part 'part1.dart';
|
| +part 'part2.dart';
|
| +''');
|
| + expect(cache.getLibraryParts(testSource),
|
| + unorderedEquals([part1Source, part2Source]));
|
| + }
|
| +
|
| + void test_getLibraryParts_noParts() {
|
| + putTestLibrary(r'''
|
| +main() {}
|
| +''');
|
| + expect(cache.getLibraryParts(testSource), isEmpty);
|
| + }
|
| +
|
| void test_getSourceErrorsInLibrary_library() {
|
| verifyNoTestUnitErrors = false;
|
| putTestLibrary(r'''
|
|
|