aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/syntax/util/EvaluationTestCase.java
diff options
context:
space:
mode:
authorGravatar Kevin Gessner <kgessner@etsy.com>2017-09-06 20:14:49 +0200
committerGravatar Yun Peng <pcloudy@google.com>2017-09-07 09:57:26 +0200
commitb864db2a6cc48edd6c7925c6699409b22e5b995b (patch)
treef0e57796d3573b05dcf721bd2135078ae2057d0c /src/test/java/com/google/devtools/build/lib/syntax/util/EvaluationTestCase.java
parent64cc3d333cc777104346fe789027e660c41dca74 (diff)
Support labels referencing external targets (with '@') in load with --incompatible_load_argument_is_label enabled (fixes #3560)
Closes #3562. PiperOrigin-RevId: 167745885
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax/util/EvaluationTestCase.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/syntax/util/EvaluationTestCase.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/util/EvaluationTestCase.java b/src/test/java/com/google/devtools/build/lib/syntax/util/EvaluationTestCase.java
index 8ff4bf1401..428aefedd3 100644
--- a/src/test/java/com/google/devtools/build/lib/syntax/util/EvaluationTestCase.java
+++ b/src/test/java/com/google/devtools/build/lib/syntax/util/EvaluationTestCase.java
@@ -201,6 +201,14 @@ public class EvaluationTestCase {
}
}
+ public void checkEvalErrorDoesNotContain(String msg, String... input) throws Exception {
+ try {
+ eval(input);
+ } catch (EvalException | FailFastException e) {
+ assertThat(e).hasMessageThat().doesNotContain(msg);
+ }
+ }
+
// Forward relevant methods to the EventCollectionApparatus
public EvaluationTestCase setFailFast(boolean failFast) {
eventCollectionApparatus.setFailFast(failFast);