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

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

Issue 1418513002: Check that AnalysisContext is not null. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
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 d0d0322dc17b68b31a782b9bef9b586516e23285..ab91ca67b9628a4db4c2f2d9c1b2e85f54788aee 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
@@ -637,6 +637,10 @@ class _SplitIndexStoreTest {
});
}
+ void test_aboutToIndexDart_nullContext() {
+ expect(store.aboutToIndex(null, unitElementA), isFalse);
+ }
+
void test_aboutToIndexDart_nullLibraryElement() {
when(unitElementA.library).thenReturn(null);
expect(store.aboutToIndex(contextA, unitElementA), isFalse);

Powered by Google App Engine
This is Rietveld 408576698