line |
true |
false |
branch |
28
|
0 |
22 |
if $@ |
44
|
13 |
7 |
if (@_ > 0) { } |
|
1 |
6 |
elsif (not defined $_) { } |
|
3 |
3 |
elsif (ref $_) { } |
|
2 |
1 |
elsif (/^[-+]?\d+$/) { } |
54
|
3 |
0 |
if ref $_ eq "HASH" |
62
|
1 |
0 |
if $_ |
72
|
0 |
54 |
if $key =~ /^-msg/i |
73
|
15 |
39 |
if $key =~ /^-exit/i |
78
|
2 |
18 |
if (not defined $opts{'-exitval'} || defined $opts{'-verbose'}) { } |
|
3 |
15 |
elsif (not defined $opts{'-exitval'}) { } |
|
2 |
13 |
elsif (not defined $opts{'-verbose'}) { } |
83
|
3 |
0 |
$opts{'-verbose'} > 0 ? : |
93
|
14 |
5 |
lc $opts{'-exitval'} eq 'noexit' || $opts{'-exitval'} < 2 ? : |
|
19 |
1 |
unless defined $opts{'-output'} |
95
|
9 |
11 |
unless defined $opts{'-input'} |
98
|
1 |
19 |
unless (ref $opts{'-input'} or -e $opts{'-input'}) |
100
|
0 |
1 |
$^O eq 'MacOS' || $^O eq 'VMS' ? : |
|
0 |
1 |
$^O =~ /^(?:dos|os2|MSWin32)$/i ? : |
104
|
1 |
0 |
ref $pathspec ? : |
106
|
1 |
0 |
length $dirname ? : |
107
|
1 |
0 |
if -e $_ and $opts{'-input'} = $_ |
113
|
7 |
13 |
if ($opts{'-verbose'} == 0) { } |
|
4 |
9 |
elsif ($opts{'-verbose'} == 1) { } |
|
3 |
6 |
elsif ($opts{'-verbose'} >= 2 and $opts{'-verbose'} != 99) { } |
|
6 |
0 |
elsif ($opts{'-verbose'} == 99) { } |
127
|
2 |
4 |
ref $sections ? : |
134
|
0 |
20 |
$opts{'-perldoc'} ? : |
137
|
0 |
20 |
if ($Pod::Usage::Config{'versiononly'} and $Pod::Usage::Config{'startperl'} =~ /\Q$version\E$/) |
140
|
0 |
20 |
unless -e $progpath |
143
|
2 |
18 |
if (not $opts{'-noperldoc'} and $opts{'-verbose'} >= 2 and not ref $opts{'-input'} and $opts{'-output'} == \*STDOUT) { } |
149
|
1 |
1 |
if $opts{'-message'} |
150
|
2 |
0 |
if (defined $opts{'-input'} and $opts{'-input'} =~ /^\s*(\S.*?)\s*$/) { } |
155
|
1 |
1 |
if ($opts{'-perldocopt'}) |
160
|
0 |
2 |
if $opts{'-perlcmd'} |
163
|
0 |
2 |
if ($?) |
166
|
0 |
0 |
if (defined $pager and length $pager) { } |
167
|
0 |
0 |
$^O =~ /win/i ? : |
182
|
18 |
1 |
unless lc $opts{'-exitval'} eq "noexit" |
197
|
2 |
18 |
if ($self->can('initialize')) { } |
204
|
0 |
180 |
if defined $val |
229
|
52 |
38 |
unless defined $regexs[$i] and length $regexs[$i] |
235
|
0 |
90 |
if $_ eq "!" |
240
|
1 |
89 |
if ($@) { } |
246
|
89 |
0 |
unless /^\^/ |
247
|
89 |
0 |
unless /\$$/ |
248
|
1 |
88 |
if $negated |
251
|
29 |
1 |
!$bad_regexs ? : |
256
|
0 |
20 |
if ($ISA[0]->can('select')) { } |
260
|
0 |
20 |
$sections[0] eq '+' ? : |
262
|
0 |
20 |
unless (@sections) |
263
|
0 |
0 |
unless $add |
267
|
20 |
0 |
unless $add and $self->{'USAGE_SELECT'} |
272
|
29 |
1 |
if (defined $cs) { } |
289
|
0 |
30 |
if $self->isa("Pod::Text::Termcap") |
298
|
75 |
535 |
if ($element eq 'head1') { } |
|
29 |
506 |
elsif ($element =~ /^head(\d+)$/ and $1) { } |
300
|
71 |
4 |
if ($self->{'USAGE_OPTIONS'}{'-verbose'} < 2) |
305
|
0 |
29 |
unless $self->{'USAGE_HEADINGS'} |
310
|
104 |
506 |
if ($element =~ /^head\d+$/) |
312
|
0 |
104 |
if (not $self->{'USAGE_SELECT'} && @{$self->{'USAGE_SELECT'};}) { } |
319
|
55 |
153 |
unless defined $headings[$i] |
322
|
2 |
206 |
$negated ? : |
324
|
119 |
89 |
unless $match |
326
|
28 |
119 |
if ($match) |
335
|
100 |
4 |
if ($self->{'USAGE_OPTIONS'}{'-verbose'} < 2) |
337
|
61 |
6 |
length $2 > 2 ? : |
338
|
100 |
0 |
unless /:\s*$/ |
343
|
272 |
338 |
if ($self->{'USAGE_SKIPPING'} and not $element =~ /^over-|^[BCFILSZ]$/) { } |
354
|
15 |
2 |
unless my $msg = $self->{'USAGE_OPTIONS'}{'-message'} |
363
|
0 |
0 |
unless my $msg = $self->{'USAGE_OPTIONS'}{'-message'} |
373
|
0 |
0 |
if ($self->{'USAGE_OPTIONS'}{'-verbose'} < 2 and /^=head/) |
377
|
0 |
0 |
length $2 > 2 ? : |
379
|
0 |
0 |
unless /:\s*$/ |