line |
true |
false |
branch |
26
|
0 |
1 |
unless open my $SCRIPT, "<", $script |
28
|
1 |
1 |
if ($line =~ /^\s*package\s+\S+\s*;/u) { } |
|
1 |
0 |
elsif ($. == 1) { } |
33
|
1 |
0 |
$line =~ /^#!/u ? : |
37
|
0 |
0 |
if $line =~ /^[^#]+;/u |
42
|
0 |
1 |
unless open my $SELF, "<", "/root/.cpan/build/Getopt-App-0.12-0/blib/lib/Getopt/App.pm" |
44
|
51 |
228 |
if $line =~ /(?:\bVERSION\s|^\s*$)/u |
45
|
43 |
185 |
if $line =~ /^sub bundle\s\{/u .. $line =~ /^}$/u |
46
|
1 |
184 |
if $line =~ /^1;\s*$/u |
49
|
15 |
169 |
if ($line =~ /^sub\s/u) { } |
|
13 |
156 |
elsif ($line =~ /^}$/u) { } |
50
|
1 |
14 |
if $out_line |
51
|
2 |
13 |
$line =~ /\}$/u ? : |
75
|
0 |
23 |
unless open my $STDOUT_ORIG, ">&STDOUT" |
76
|
0 |
23 |
unless open my $STDERR_ORIG, ">&STDERR" |
79
|
0 |
23 |
unless open STDERR, ">&", fileno $STDERR_ORIG |
80
|
0 |
23 |
unless open STDOUT, ">&", fileno $STDOUT_ORIG |
81
|
0 |
23 |
if $_[0] |
84
|
0 |
23 |
unless open STDOUT, ">&", fileno $STDOUT_CAPTURE |
85
|
0 |
23 |
unless open STDERR, ">&", fileno $STDERR_CAPTURE |
88
|
4 |
19 |
unless (eval {
do {
$exit_value = &$app($argv || [@ARGV]);
1
}
}) |
106
|
1 |
3 |
if $pod2usage{'-sections'} |
114
|
1 |
3 |
if $pod2usage{'-sections'} |
131
|
6 |
4 |
if ($flag eq '-capture') { } |
|
2 |
2 |
elsif ($flag eq '-complete') { } |
|
0 |
2 |
elsif ($flag eq '-signatures') { } |
|
2 |
0 |
elsif (not $flag =~ /^-/u) { } |
144
|
1 |
1 |
if $caller eq "main" |
145
|
0 |
1 |
unless eval "require $flag;1" |
150
|
13 |
6 |
unless ($skip_default) |
151
|
13 |
0 |
unless $caller->can("extract_usage") |
152
|
13 |
0 |
unless $caller->can("new") |
159
|
1 |
1 |
@_ > 1 ? : |
|
2 |
47 |
@_ ? : |
166
|
12 |
45 |
if not $Getopt::App::APP_CLASS and defined wantarray |
169
|
45 |
0 |
ref $rules[0] eq 'ARRAY' ? : |
174
|
10 |
35 |
if defined $ENV{'COMP_POINT'} and defined $ENV{'COMP_LINE'} |
179
|
15 |
20 |
$SUBCOMMANDS ? : |
180
|
7 |
24 |
if defined $exit_value |
184
|
23 |
1 |
&Getopt::Long::GetOptionsFromArray($argv, $app, @rules) ? : |
188
|
21 |
1 |
$valid ? : |
197
|
0 |
6 |
if ref $subcommand->[1] eq "CODE" |
200
|
1 |
5 |
unless my $code = do $subcommand->[1] |
206
|
0 |
21 |
unless $state->{'valid'} |
207
|
20 |
1 |
unless $argv->[0] and $argv->[0] =~ /^-/u |
221
|
8 |
21 |
unless $exit_value and $exit_value =~ /^\d{1,3}$/u |
222
|
2 |
27 |
unless $exit_value < 255 |
223
|
0 |
29 |
unless $Getopt::App::APP_CLASS |
230
|
6 |
5 |
unless ($APPS{$subcommand->[1]}) |
232
|
0 |
5 |
unless ref $APPS{$subcommand->[1]} eq "CODE" |
240
|
3 |
12 |
unless $argv->[0] and $argv->[0] =~ /^\w/u |
242
|
4 |
8 |
unless my $subcommand = &first(sub {
$_->[0] eq $argv->[0];
}
, @$subcommands) |
248
|
1 |
3 |
unless @$rules |
254
|
7 |
3 |
length $_ == 1 ? : |
258
|
4 |
4 |
if $l > $len |
267
|
3 |
1 |
unless @$subcommands |
272
|
3 |
2 |
if $l > $len |