Branch Coverage

blib/lib/Getopt/ApacheCommonsCLI.pm
Criterion Covered Total %
branch 27 44 61.3


line true false branch
37 13 0 defined $$roptions{'DEBUG'} ? :
38 13 0 defined $$roptions{'JAVA_DOPTS'} ? :
39 13 0 defined $$roptions{'OPT_PRECEDENCE'} ? :
40 13 0 defined $$roptions{'BUNDLING'} ? :
41 13 0 defined $$roptions{'AMBIGUITIES'} ? :
49 7 6 if ($BUNDLING)
56 0 13 if (ref $rerrsub ne 'CODE')
65 0 260 if $long eq ''
67 0 260 if ($short eq '')
71 0 260 if (length $short > length $long)
82 0 26 if (not defined $value or $value eq '')
88 1 25 if (exists $$ropts{$option}) { }
89 1 0 if ($OPT_PREC == 1) { }
0 0 elsif ($OPT_PREC == 2) { }
0 0 elsif ($OPT_PREC == 0) { }
110 117 143 $type ne '' ? :
129 11 2 if (scalar @ARGV)
130 2 9 if ($JAVA_DOPTS)
132 1 2 if ($ARGV[$n] eq '--')
147 13 0 if ($DEBUG)
148 13 0 if $DEBUG
155 1 12 if ($result == 0 or @{$$ropts{'__errors__'};}) { }