diff options
author | 2016-01-28 15:05:16 +0000 | |
---|---|---|
committer | 2016-01-28 15:30:46 +0000 | |
commit | 849017381db007108b3a9e25b1dbf07b7587d31c (patch) | |
tree | bb1b03a339fedb20d87b9a80e3af8d74b8a8b4f7 /src/test/java/com/google/devtools | |
parent | b6fbab7115c1567705e7bddc7b79bdee6313fce3 (diff) |
Refactor DependencyResolver to collect and return loading errors.
This should never be triggered in production, where we always run a loading
phase first and only analyze targets that load successfully. I.e., this is
just plumbing which will be hooked up in a subsequent change.
--
MOS_MIGRATED_REVID=113258593
Diffstat (limited to 'src/test/java/com/google/devtools')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/analysis/DependencyResolverTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/analysis/DependencyResolverTest.java b/src/test/java/com/google/devtools/build/lib/analysis/DependencyResolverTest.java index 19ad653ea8..e75ca935dd 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/DependencyResolverTest.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/DependencyResolverTest.java @@ -64,6 +64,11 @@ public class DependencyResolverTest extends AnalysisTestCase { throw new IllegalStateException(); } + @Override + protected void missingEdgeHook(Target from, Label to, NoSuchThingException e) { + throw new IllegalStateException(e); + } + @Nullable @Override protected Target getTarget(Label label) throws NoSuchThingException { |