File: 03errors.t

package info (click to toggle)
libinline-perl 0.86-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 504 kB
  • sloc: perl: 3,147; sh: 57; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 642 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!inc/bin/testml-cpan


*perl.eval-catch =~ *error-patterns


=== Bad first parameter
--- perl
use Inline Bogus => 'code';
--- error-patterns(@/)
You have specified 'Bogus' as an Inline programming language.
I currently only know about the following languages:


=== Bad shortcut
--- perl
use Inline 'force', 'hocum';
--- error-patterns(@/)
Invalid shortcut 'hocum' specified.
Valid shortcuts are:
VERSION, INFO, FORCE, NOCLEAN, CLEAN, UNTAINT, SAFE, UNSAFE,
GLOBAL, NOISY and REPORTBUG


=== Bad config option
--- perl
use Inline Foo => 'xxx' => ENABLE => 'BOgUM';
--- error-patterns(@/)
'BOGUM' is not a valid config option for Inline::Foo