Branch Coverage

blib/lib/Getopt/Long/EvenLess.pm
Criterion Covered Total %
branch 47 58 81.0


line true false branch
21 5 5 if (ref $_[0] eq 'HASH') { }
27 5 0 if ($_ eq 'pass_through') { }
0 0 elsif ($_ eq 'no_pass_through') { }
42 1 0 @_ ? :
44 2 0 if (grep {$_ eq $imp;} @EXPORT, @EXPORT_OK) { }
73 12 52 if $short_mode and length $o > 1
74 22 30 if ($o eq $wanted) { }
7 23 elsif (index($o, $wanted) == 0) { }
85 8 26 if (not @candidates) { }
3 23 elsif (@candidates > 1) { }
86 4 4 unless ($config->{'pass_through'})
92 1 2 unless ($config->{'pass_through'})
108 18 3 @_ ? :
115 2 36 if ($argv->[$i] eq '--') { }
26 10 elsif ($argv->[$i] =~ /\A--(.+?)(?:=(.*))?\z/) { }
5 5 elsif ($argv->[$i] =~ /\A-(.*)/) { }
124 7 19 if (not defined $opt) { }
3 16 elsif (not length $opt) { }
135 16 0 if ($spec =~ /=[fios][\@%]?\z/) { }
136 3 13 if (defined $val_in_opt) { }
140 1 12 if ($i + 1 >= @$argv)
162 1 7 if (not defined $opt) { }
0 7 elsif (not length $opt) { }
164 1 0 unless $remaining_pushed++
169 0 0 unless $remaining_pushed++
175 4 3 if ($spec =~ /=[fios][\@%]?\z/) { }
176 2 2 if (length $str) { }
181 1 1 if ($i + 1 >= @$argv)
183 1 0 unless ($config->{'pass_through'})