|
2 | 2 | "/tmp/test1" |
3 | 3 | copy_from => helper("oops"); |
4 | 4 | ^----^ |
5 | | -Error: Call to unknown function / bundle / body 'helper' at tests/lint/018_implies_body.x.cf:17:20 |
| 5 | +Error: Expected a body but 'helper' is a bundle at tests/lint/018_implies_body.x.cf:17:20 |
6 | 6 |
|
7 | 7 | "/tmp/test2" |
8 | 8 | copy_from => unknown_name("oops"); |
9 | 9 | ^----------^ |
10 | | -Error: Call to unknown function / bundle / body 'unknown_name' at tests/lint/018_implies_body.x.cf:19:20 |
| 10 | +Error: Call to unknown body 'unknown_name' at tests/lint/018_implies_body.x.cf:19:20 |
11 | 11 |
|
12 | 12 | "/tmp/test3" |
13 | 13 | copy_from => mycopy("/src"); |
14 | 14 | ^------------^ |
15 | 15 | Error: Expected 2 arguments, received 1 for body 'mycopy' at tests/lint/018_implies_body.x.cf:21:20 |
16 | | -FAIL: tests/lint/018_implies_body.x.cf (3 errors) |
17 | | -Failure, 3 errors in total. |
| 16 | +Hint: The body 'mycopy' is defined at tests/lint/018_implies_body.x.cf:1:16 |
| 17 | + |
| 18 | + "/tmp/test4" |
| 19 | + copy_from => readfile("/etc/file", "100"); |
| 20 | + ^------^ |
| 21 | +Error: Expected a body but 'readfile' is a built-in function at tests/lint/018_implies_body.x.cf:23:20 |
| 22 | + |
| 23 | + "test5" |
| 24 | + usebundle => mycopy("/src", "host"); |
| 25 | + ^----^ |
| 26 | +Error: Expected a bundle but 'mycopy' is a body at tests/lint/018_implies_body.x.cf:26:20 |
| 27 | + |
| 28 | + "test6" |
| 29 | + usebundle => readfile("/etc/file", "100"); |
| 30 | + ^------^ |
| 31 | +Error: Expected a bundle but 'readfile' is a built-in function at tests/lint/018_implies_body.x.cf:28:20 |
| 32 | + |
| 33 | + "test7" |
| 34 | + usebundle => unknown_bundle("oops"); |
| 35 | + ^------------^ |
| 36 | +Error: Call to unknown bundle 'unknown_bundle' at tests/lint/018_implies_body.x.cf:30:20 |
| 37 | +FAIL: tests/lint/018_implies_body.x.cf (7 errors) |
| 38 | +Failure, 7 errors in total. |
0 commit comments