Branch Coverage

blib/lib/ExtUtils/InstallPaths.pm
Criterion Covered Total %
branch 38 82 46.3


line true false branch
51 5 3 unless $$override{$key}
78 0 118 unless defined $key
84 0 79 unless defined $installdirs
85 0 79 unless defined $key
97 16 20 $filter{$_} ? :
56 77 ref $defaults{$_} ? :
36 133 exists $args{$_} ? :
101 12 0 if defined $self{'dist_name'}
149 13 0 $c->get('installstyle') ? :
175 0 12 $c->get('usevendorprefix') ? :
186 0 48 if $self->verbose
198 0 0 $installable ? :
207 0 24 if (not $default) { }
220 0 24 if $sprefix =~ m[/$]
222 24 0 if defined $path and length $path
224 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) { }
243 0 0 if ($rvol) { }
254 0 0 unless defined $path
260 0 0 if $rprefix
261 0 0 if $sprefix
265 0 0 if (length $path == 0) { }
0 0 elsif (not 'File::Spec'->file_name_is_absolute($path)) { }
0 0 elsif ($sprefix eq $rprefix) { }
277 0 0 if ($path_vol eq $vms_prefix . ':') { }
280 0 0 unless $path_dirs =~ /^\[\./
294 0 1 $^O eq 'VMS' ? :
308 0 69 if $self->install_path($type)
310 23 46 if ($self->install_base)
312 23 0 $relpath ? :
315 24 22 if ($self->prefix)
317 24 0 $relpath ? :
328 0 2 $self->prefix ? :
1 2 $self->install_base ? :
340 8 8 unless -e $localdir
349 8 0 if (my $dest = $self->install_destination($type)) { }
356 0 2 if @skipping
359 2 0 if ($self->create_packlist and my $module_name = $self->module_name)
366 0 2 if (length(my $destdir = $self->destdir || ''))
381 0 0 if ($file ne '') { }