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

Unified Diff: pkg/analyzer/test/src/context/builder_test.dart

Issue 2660073002: ContextBuilder should to throw when a root folder does not exist. (Closed)
Patch Set: Created 3 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/analyzer/lib/src/context/builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/context/builder_test.dart
diff --git a/pkg/analyzer/test/src/context/builder_test.dart b/pkg/analyzer/test/src/context/builder_test.dart
index 4569f8e0c1ac3c05cdef8047c8cf44b6273f4902..7cb396b2ea902ca7badf9335695af74a34088585 100644
--- a/pkg/analyzer/test/src/context/builder_test.dart
+++ b/pkg/analyzer/test/src/context/builder_test.dart
@@ -125,7 +125,7 @@ const Map<String, LibraryInfo> libraries = const {
String path = resourceProvider.convertPath('/some/directory/path');
String filePath =
- pathContext.join(path, AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE);
+ pathContext.join(path, AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE);
resourceProvider.newFile(
filePath,
'''
@@ -304,6 +304,12 @@ bar:$barUri
expect(packages, same(Packages.noPackages));
}
+ void test_createPackageMap_rootDoesNotExist() {
+ String rootPath = resourceProvider.convertPath('/root');
+ Packages packages = builder.createPackageMap(rootPath);
+ expect(packages, same(Packages.noPackages));
+ }
+
void test_createSourceFactory_bazelWorkspace_fileProvider() {
String _p(String path) => resourceProvider.convertPath(path);
« no previous file with comments | « pkg/analyzer/lib/src/context/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698