Branch Coverage

lib/Module/Build/SysPath.pm
Criterion Covered Total %
branch 0 56 0.0


line true false branch
31 0 0 if $@
39 0 0 ref $_ eq 'ARRAY' ? :
40 0 0 unless $builder->{'properties'}{'conffiles'}
61 0 0 if &any(sub { $_ eq $path_type; } , 'prefix', 'localstatedir')
65 0 0 if (-d $sys_path)
70 0 0 if (-d $file)
75 0 0 if basename($file) =~ /^\./ and not exists $builder->{'properties'}{$path_type . '_files'}{$file}
88 0 0 if basename($file) eq '.exists'
94 0 0 if $non_persistant and not exists $builder->{'properties'}{$path_type . '_files'}{$file}
100 0 0 if $file =~ /^$_/
101 0 0 if &any(sub { not exists $builder->{'properties'}{$path_type . '_files'}{$file} if $file =~ /^$_/; } , @ignore_folders)
105 0 0 if basename($file) =~ /^\./ and basename($file) ne '.exists'
113 0 0 if (&any(sub { $_ eq $file; } , @conffiles))
117 0 0 if -f $dest_file
119 0 0 if ($diff and 'Sys::Path'->changed_since_install($dest_file))
124 0 0 if ('Sys::Path'->changed_since_install($dest_file, $file) and 'Sys::Path'->prompt_cfg_file_changed($file, $dest_file, sub { $builder->prompt(@_); } )) { }
147 0 0 if &any(sub { $_ eq $path_type; } , 'sharedstatedir', 'sysconfdir')
172 0 0 unless ($destdir)
176 0 0 unless rename $system_file, $new_system_file
183 0 0 unless (-d $folder)
211 0 0 unless -f $module_filename
213 0 0 unless -f $installed_module_filename
218 0 0 unless open my $config_fh, '<', $module_filename
219 0 0 unless open my $real_config_fh, '>', $installed_module_filename
221 0 0 if $line =~ /# remove after install$/
222 0 0 if ($line =~ /^sub \s+ ($path_types) \s* {/msx)
239 0 0 unless chmod 0644, 'File::Spec'->catfile($destdir || (), $writefile)
243 0 0 unless $destdir