Debian Codegraph @

t/pmfunc.t

raw symbols SCIP
1 # pmfunc testing
2
3 # ------ pragmas
4 use strict;
5 use warnings;
6 use Test::More tests => 3;
7
8 # ------ define variable
9 my $output = undef; # output from pmfunc
10
11 # ------ add pmtools to PATH for testing, so we use the current pmtools
12 $ENV{"PATH"} = 'blib/script:' . $ENV{"PATH"};
13
14 eval {
15 $output = `bin/pmfunc Cwd::chdir 2>&1`;
16 };
17
18 isnt($?, 127, "pmfunc runs");
19
20 like($output, qr/^sub\schdir\s/msx, "found 'chdir()'");
21 like($output, qr/my\s\$newdir\s=\s/msx, "display function body");