Branch Coverage

blib/lib/ExtUtils/InstallPaths.pm
Criterion Covered Total %
branch 41 86 47.6


line true false branch
47 4 3 unless $override->{$key}
72 0 13 if ($config->get("installsitescript") eq "")
77 16 20 $filter{$_} ? :
58 66 ref $defaults{$_} ? :
36 124 exists $args{$_} ? :
79 12 0 if defined $self{'dist_name'}
88 0 162 unless defined $key
94 0 95 unless defined $installdirs
95 0 95 unless defined $key
148 13 0 $c->get('installstyle') ? :
174 0 12 $c->get('usevendorprefix') ? :
185 0 48 if $self->verbose
197 8 0 $installable ? :
206 0 24 if (not $default) { }
219 0 24 if $sprefix =~ m[/$]
221 24 0 if defined $path and length $path
223 0 24 if (not defined $path or length $path == 0) { }
0 24 elsif (not 'File::Spec'->file_name_is_absolute($path)) { }
24 0 elsif (not $path =~ s/^\Q$sprefix\E\b//s) { }
242 0 0 if ($rvol) { }
253 0 0 unless defined $path
259 0 0 if $rprefix
260 0 0 if $sprefix
264 0 0 if (length $path == 0) { }
0 0 elsif (not 'File::Spec'->file_name_is_absolute($path)) { }
0 0 elsif ($sprefix eq $rprefix) { }
276 0 0 if ($path_vol eq $vms_prefix . ':') { }
279 0 0 unless $path_dirs =~ /^\[\./
293 0 1 $^O eq 'VMS' ? :
307 0 91 if $self->install_path($type)
309 37 54 if ($self->install_base)
311 37 0 $relpath ? :
314 24 30 if ($self->prefix)
316 24 0 $relpath ? :
327 0 2 $self->prefix ? :
1 2 $self->install_base ? :
336 1 2 if ($dirs and %$dirs) { }
347 0 8 unless -e $localdir_for{$type} or $self->is_default_installable($type)
348 20 0 if (my $dest = $self->install_destination($type)) { }
355 0 3 if @skipping
358 3 0 if ($self->create_packlist and my $module_name = $self->module_name)
365 0 3 if (length(my $destdir = $self->destdir || ''))
380 0 0 if ($file ne '') { }