Branch Coverage

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


line true false branch
109 0 2 if scalar @_ != 3
117 2 0 if $#fnd == -1
135 0 1 if defined $extra_msg
153 2 0 if ($count > 0)
155 1 1 $count == 1 ? :
161 0 2 if ($count > 0)
170 2 5 if /^$/
174 1 1 if $#ARGV == -1
189 3 0 if ($config_href->{$opt}{'opt_arg_type'} eq '') { }
201 2 0 if (scalar @no_args)
207 2 1 /^help$/i ? :
209 2 0 if defined $help
228 2 1 if ($opt =~ /^help$/i) { }
1 0 elsif ($config_href->{$opt}{'opt_arg_type'} eq '') { }
243 2 0 if $help
255 0 1 unless &GetOptions(\%opts, @opts_arr)
270 1 0 if (defined $config_href->{$opt})
275 1 0 if (not $@) { }
277 0 1 if $cmd =~ /print_usage_and_die/