diff options
author | 2016-05-23 20:57:11 +0000 | |
---|---|---|
committer | 2016-05-24 11:57:43 +0000 | |
commit | 87a598065e9574c3d463b1edb5026540df64453f (patch) | |
tree | f069d7ce9ccdaff3ed500abf8e2a5fbc93db64ca /src/test/java/com | |
parent | b4f3769294e110e8054ed05c354f27af4a8effe3 (diff) |
Use a non-side-effectful PackageLookupValue#packageExists implementation for //external package lookups, but keep the current (incorrect) semantics for unsuccessful //external package lookups.
Refactor some users of the old WorkspacePackageLookupValue.
--
MOS_MIGRATED_REVID=123034174
Diffstat (limited to 'src/test/java/com')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/skyframe/PackageLookupFunctionTest.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/PackageLookupFunctionTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/PackageLookupFunctionTest.java index db6209e7b1..336a826437 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/PackageLookupFunctionTest.java +++ b/src/test/java/com/google/devtools/build/lib/skyframe/PackageLookupFunctionTest.java @@ -222,18 +222,7 @@ public class PackageLookupFunctionTest extends FoundationTestCase { assertTrue(packageLookupValue.packageExists()); assertEquals(rootDirectory, packageLookupValue.getRoot()); } - - // TODO(kchodorow): Clean this up (see TODOs in PackageLookupValue). - @Test - public void testExternalPackageLookupSemantics() { - PackageLookupValue existing = PackageLookupValue.workspace(rootDirectory); - assertTrue(existing.isExternalPackage()); - assertTrue(existing.packageExists()); - PackageLookupValue nonExistent = PackageLookupValue.workspace(rootDirectory.getRelative("x/y")); - assertTrue(nonExistent.isExternalPackage()); - assertFalse(nonExistent.packageExists()); - } - + @Test public void testPackageLookupValueHashCodeAndEqualsContract() throws Exception { Path root1 = rootDirectory.getRelative("root1"); |