Branch Coverage

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


line true false branch
48 6 3 unless $$override{$key}
73 16 20 $filter{$_} ? :
59 82 ref $defaults{$_} ? :
36 141 exists $args{$_} ? :
77 12 0 if defined $self{'dist_name'}
86 0 118 unless defined $key
92 0 79 unless defined $installdirs
93 0 79 unless defined $key
147 13 0 $c->get('installstyle') ? :
173 0 13 $c->get('usevendorprefix') ? :
184 0 48 if $self->verbose
196 0 0 $installable ? :
205 0 24 if (not $default) { }
218 0 24 if $sprefix =~ m[/$]
220 24 0 if defined $path and length $path
222 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) { }
241 0 0 if ($rvol) { }
252 0 0 unless defined $path
258 0 0 if $rprefix
259 0 0 if $sprefix
263 0 0 if (length $path == 0) { }
0 0 elsif (not 'File::Spec'->file_name_is_absolute($path)) { }
0 0 elsif ($sprefix eq $rprefix) { }
275 0 0 if ($path_vol eq $vms_prefix . ':') { }
278 0 0 unless $path_dirs =~ /^\[\./
292 0 1 $^O eq 'VMS' ? :
306 0 69 if $self->install_path($type)
308 23 46 if ($self->install_base)
310 23 0 $relpath ? :
313 24 22 if ($self->prefix)
315 24 0 $relpath ? :
326 0 2 $self->prefix ? :
1 2 $self->install_base ? :
338 8 8 unless -e $localdir
347 8 0 if (my $dest = $self->install_destination($type)) { }
354 0 2 if @skipping
357 2 0 if ($self->create_packlist and my $module_name = $self->module_name)
364 0 2 if (length(my $destdir = $self->destdir || ''))
379 0 0 if ($file ne '') { }