Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: pkg/analysis_server/test/services/index/store/split_store_test.dart

Issue 823223003: Fix for NPE in the index store. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/services/index/store/split_store.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/index/store/split_store_test.dart
diff --git a/pkg/analysis_server/test/services/index/store/split_store_test.dart b/pkg/analysis_server/test/services/index/store/split_store_test.dart
index d824cf58ec9c98a714a1cb6ddc28cf2e8e81d209..eab8e8272492c276e70c87360c38deed80cf48f5 100644
--- a/pkg/analysis_server/test/services/index/store/split_store_test.dart
+++ b/pkg/analysis_server/test/services/index/store/split_store_test.dart
@@ -705,6 +705,15 @@ class _SplitIndexStoreTest {
}
}
+ void test_recordRelationship_multiplyDefinedElement() {
+ Element multiplyElement =
+ new MultiplyDefinedElementImpl(contextA, <Element>[elementA, elementB]);
+ Location location = mockLocation(elementA);
+ store.recordRelationship(multiplyElement, relationship, location);
+ store.doneIndex();
+ expect(nodeManager.isEmpty(), isTrue);
+ }
+
void test_recordRelationship_nullElement() {
Location locationA = mockLocation(elementA);
store.recordRelationship(null, relationship, locationA);
« no previous file with comments | « pkg/analysis_server/lib/src/services/index/store/split_store.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698