Branch Coverage

blib/lib/Rex/Apache/Deploy/Symlink.pm
Criterion Covered Total %
branch 0 48 0.0


line true false branch
86 0 0 unless (%option)
87 0 0 if ('Rex::Config'->get('package_option'))
94 0 0 unless ($file)
100 0 0 unless (-f $file)
103 0 0 if (exists $options->{'version'})
108 0 0 if (-f "$file.tar.gz") { }
0 0 elsif (-f "$file-$version.tar.gz") { }
126 0 0 unless (is_dir($Rex::Apache::Deploy::Symlink::deploy_to))
130 0 0 unless (is_writeable($Rex::Apache::Deploy::Symlink::deploy_to))
135 0 0 unless (is_writeable(dirname($Rex::Apache::Deploy::Symlink::document_root)))
143 0 0 if (get_live_version() and get_live_version() eq basename($deploy_dir))
188 0 0 unless (grep {/$new_version/;} @versions)
205 0 0 if $link
213 0 0 unless ($Rex::Apache::Deploy::Symlink::generate_deploy_directory)
216 0 0 if ($file =~ /-([0-9\._~\-]+)\.(zip|tar\.gz|war|tar\.bz2|jar)$/) { }
280 0 0 if ($file =~ /\.tar\.gz$/) { }
0 0 elsif ($file =~ /\.zip$/) { }
0 0 elsif ($file =~ /\.tar\.bz2$/) { }
296 0 0 if ($file =~ /\.tar\.gz$/) { }
0 0 elsif ($file =~ /\.zip$/) { }
0 0 elsif ($file =~ /\.tar\.bz2$/) { }
312 0 0 if ($file =~ /\.tar\.gz$/) { }
0 0 elsif ($file =~ /\.zip$/) { }
0 0 elsif ($file =~ /\.tar\.bz2$/) { }