diff options
author | twerth <twerth@google.com> | 2018-03-27 05:06:58 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-27 05:08:54 -0700 |
commit | c39a0e049361456fce702228d423b6b59eb8f08c (patch) | |
tree | 83552c68c17b9624553c97d56d2025274757be73 /src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java | |
parent | 5fabb43c4b5682616f8c9a7a5cc74f1ff6198c6e (diff) |
Automated rollback of commit 1f8ba946a3c20413ff0a95235b20d7cc1b4964f0.
*** Reason for rollback ***
PiperOrigin-RevId: 190600296
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java index a1bbf220b0..40744c893f 100644 --- a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java +++ b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java @@ -67,7 +67,9 @@ import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** Tests for skylark functions relating to rule implemenetation. */ +/** + * Tests for SkylarkRuleImplementationFunctions. + */ @RunWith(JUnit4.class) public class SkylarkRuleImplementationFunctionsTest extends SkylarkTestCase { @Rule public ExpectedException thrown = ExpectedException.none(); @@ -715,8 +717,8 @@ public class SkylarkRuleImplementationFunctionsTest extends SkylarkTestCase { @Test public void testRunfilesBadSetGenericType() throws Exception { checkErrorContains( - "expected value of type 'depset of Files or NoneType' for parameter 'transitive_files', " - + "in method call runfiles(depset transitive_files) of 'ctx'", + "expected depset of Files or NoneType for 'transitive_files' while calling runfiles " + + "but got depset of ints instead: depset([1, 2, 3])", "ruleContext.runfiles(transitive_files=depset([1, 2, 3]))"); } @@ -831,7 +833,7 @@ public class SkylarkRuleImplementationFunctionsTest extends SkylarkTestCase { SkylarkRuleContext ruleContext = createRuleContext("//foo:foo"); checkErrorContains( ruleContext, - "unexpected keyword 'bad_keyword', in method call runfiles(string bad_keyword) of 'ctx'", + "unexpected keyword 'bad_keyword' in call to runfiles(self: ctx, ", "ruleContext.runfiles(bad_keyword = '')"); } |