diff options
author | John Cater <jcater@google.com> | 2016-10-25 16:16:35 +0000 |
---|---|---|
committer | John Cater <jcater@google.com> | 2016-10-25 20:19:29 +0000 |
commit | b4f461ecc183d9adc9482f4cad848687ed0227ee (patch) | |
tree | 148126cf5b6f1002c1d4391fe74c13af736fd74e /src/test/java/com/google/devtools/build/lib/skyframe/GlobFunctionTest.java | |
parent | 7260f0a2c69bfe0fec187099fcea2dd16c331729 (diff) |
Add new skyframe function to lookup the repository given a path, and use that
to report invalid package references. Fixes #1592.
--
MOS_MIGRATED_REVID=137164164
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/GlobFunctionTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/skyframe/GlobFunctionTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/GlobFunctionTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/GlobFunctionTest.java index 020934314f..4ee3a8efda 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/GlobFunctionTest.java +++ b/src/test/java/com/google/devtools/build/lib/skyframe/GlobFunctionTest.java @@ -144,6 +144,11 @@ public abstract class GlobFunctionTest { new FileStateFunction( new AtomicReference<TimestampGranularityMonitor>(), externalFilesHelper)); skyFunctions.put(SkyFunctions.FILE, new FileFunction(pkgLocator)); + skyFunctions.put(SkyFunctions.DIRECTORY_LISTING, new DirectoryListingFunction()); + skyFunctions.put( + SkyFunctions.DIRECTORY_LISTING_STATE, + new DirectoryListingStateFunction(externalFilesHelper)); + skyFunctions.put(SkyFunctions.LOCAL_REPOSITORY_LOOKUP, new LocalRepositoryLookupFunction()); return skyFunctions; } @@ -692,7 +697,7 @@ public abstract class GlobFunctionTest { assertGlobMatches("symlinks/*.txt", "symlinks/existing.txt"); } - private class CustomInMemoryFs extends InMemoryFileSystem { + private static final class CustomInMemoryFs extends InMemoryFileSystem { private Map<Path, FileStatus> stubbedStats = Maps.newHashMap(); |