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

Unified Diff: pkg/analyzer/test/generated/bazel_test.dart

Issue 2506753002: When analyzing a Bazel/Blaze workspace in which no build has been run, assume Bazel. (Closed)
Patch Set: Rework using a static const. Created 4 years, 1 month 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/generated/bazel.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/generated/bazel_test.dart
diff --git a/pkg/analyzer/test/generated/bazel_test.dart b/pkg/analyzer/test/generated/bazel_test.dart
index cc1a75a405222ccb116d97a5816840477a6bfc87..a2290cdafecbdd045f68c6cef3fd14f9cc372a8d 100644
--- a/pkg/analyzer/test/generated/bazel_test.dart
+++ b/pkg/analyzer/test/generated/bazel_test.dart
@@ -570,10 +570,14 @@ class BazelWorkspaceTest extends _BaseTest {
}
void test_find_null_symlinkPrefix() {
+ String prefix = BazelWorkspace.defaultSymlinkPrefix;
provider.newFile(_p('/workspace/WORKSPACE'), '');
BazelWorkspace workspace =
BazelWorkspace.find(provider, _p('/workspace/my/module'));
- expect(workspace, isNull);
+ expect(workspace.root, _p('/workspace'));
+ expect(workspace.readonly, isNull);
+ expect(workspace.bin, _p('/workspace/$prefix-bin'));
+ expect(workspace.genfiles, _p('/workspace/$prefix-genfiles'));
}
void test_findFile_hasReadonlyFolder() {
« no previous file with comments | « pkg/analyzer/lib/src/generated/bazel.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698