Branch Coverage

blib/lib/Module/Install/GetProgramLocations.pm
Criterion Covered Total %
branch 12 72 16.6


line true false branch
34 0 0 unless defined $info{$program}{'argname'}
36 0 0 if (exists $info{$program}{'types'})
38 0 0 unless exists $info{$program}{'types'}{$type}{'fetch'}
42 0 0 unless ref $info{$program}{'types'}{$type}{'fetch'} eq 'CODE' and defined &{$info{$program}{'types'}{$type}{'fetch'};}
55 0 0 if (keys %user_specified_program_paths) { }
81 0 0 unless defined $var
83 0 0 if $value eq ''
89 0 0 if ($var eq $info{$program}{'argname'})
97 0 0 unless $is_a_program_arg
121 0 0 if exists $program_locations{$program_name} and $program_locations{$program_name} eq ''
124 0 0 unless exists $program_locations{$program_name}
127 0 0 if (not defined $self->can_run($full_path)) { }
140 0 0 unless ($is_valid)
178 0 0 if ($name eq '' or not defined $full_path)
184 0 0 if not defined $full_path or $name eq ''
187 0 0 if (exists $info{$program_name}{'types'})
197 0 0 scalar keys %{$info{$program_name}{'types'};} > 1 ? :
205 0 0 if $choice eq 'none'
211 0 0 if (not defined $self->can_run($choice)) { }
215 0 0 if ($last_choice ne $choice)
228 0 0 unless ($is_valid)
232 0 0 if ($last_choice ne $choice)
258 2 0 if (exists $info{$program_name}{'types'})
266 0 2 unless defined $version
268 1 1 if ($self->version_matches_range($version, $info{$program_name}{'types'}{$type}{'numbers'}))
276 1 0 if defined $version
303 0 9 unless @ranges
310 8 3 $lower_bound eq '[' ? :
311 3 8 $upper_bound eq ']' ? :
322 6 5 if $lower_bound_satisified and $upper_bound_satisified
336 0 0 if ('File::Spec'->file_name_is_absolute($program)) { }
347 0 0 if defined $self->can_run($path_to_choice)
350 0 0 unless -e $path_to_choice
365 0 0 unless defined $program
376 0 0 unless ($version_message =~ /\b(GNU|Free\s+Software\s+Foundation)\b/s)
383 0 0 unless $version_message =~ /\b(GNU|Free\s+Software\s+Foundation)\b/s