Branch Coverage

lib/GetoptLongWrapper.pm
Criterion Covered Total %
branch 24 38 63.1


line true false branch
84 0 2 if scalar @_ != 3
92 2 0 if $#fnd == -1
110 0 1 if defined $extra_msg
128 2 0 if ($count > 0)
130 1 1 $count == 1 ? :
136 0 2 if ($count > 0)
145 2 5 if /^$/
149 1 1 if $#ARGV == -1
164 3 0 if ($config_href->{$opt}{'opt_arg_type'} eq '') { }
176 2 0 if (scalar @no_args)
182 2 1 /^help$/i ? :
184 2 0 if defined $help
203 2 1 if ($opt =~ /^help$/i) { }
1 0 elsif ($config_href->{$opt}{'opt_arg_type'} eq '') { }
218 2 0 if $help
230 0 1 unless &GetOptions(\%opts, @opts_arr)
245 1 0 if (defined $config_href->{$opt})
250 1 0 if (not $@) { }
252 0 1 if $cmd =~ /print_usage_and_die/