Branch Coverage

blib/lib/File/Symlink/Util.pm
Criterion Covered Total %
branch 9 62 14.5


line true false branch
41 0 1 unless (-l $link_path1)
45 0 1 unless (-l $link_path2)
51 0 1 unless (defined $dest_path1)
56 0 1 unless (defined $dest_path2)
61 0 1 if ("File::Spec"->file_name_is_absolute($dest_path1))
65 0 1 if ("File::Spec"->file_name_is_absolute($dest_path2))
75 0 1 if ($dest_path2 eq $new_dest_path2)
79 0 1 unless (unlink $link_path2)
83 0 1 unless (symlink $new_dest_path2, $link_path2)
151 0 0 unless defined($symlink = $args{'symlink'})
152 0 0 -e _ ? :
0 0 unless (-l $symlink)
154 0 0 unless (-e $target)
155 0 0 if (defined $args{'is_abs'})
157 0 0 if ($args{'is_abs'}) { }
158 0 0 unless ("File::Spec"->file_name_is_absolute($target))
162 0 0 if ("File::Spec"->file_name_is_absolute($target))
167 0 0 if (defined $args{'target'})
171 0 0 unless ($wanted_abs_target eq $abs_target)
176 0 0 if ($args{'ext_matches'})
179 0 0 unless defined $symlink_ext and defined $target_ext
180 0 0 unless (lc $symlink_ext eq lc $target_ext)
186 0 0 if ($args{'content_matches'})
189 0 0 unless (open my $fh, "<", $symlink)
191 0 0 if $type
192 0 0 if (defined $symlink_ext and @exts) { }
0 0 elsif (defined $symlink_ext xor @exts) { }
195 0 0 if (lc $ext eq lc $symlink_ext)
197 0 0 unless ($found)
201 0 0 if (defined $symlink_ext) { }
213 0 0 if (@{$res->[2];})