Condition Coverage

blib/lib/Stow.pm
Criterion Covered Total %
condition 28 38 73.6


and 3 conditions

line !l l&&!r l&&r condition
531 54 12 12 $self->{'no-folding'} and -d $pkg_path_from_cwd
66 2 10 $self->{'no-folding'} and -d $pkg_path_from_cwd and not -l $pkg_path_from_cwd
553 1 0 9 $self->is_a_dir(join_paths(parent($target_subpath), $existing_link_dest)) and $self->is_a_dir(join_paths(parent($target_subpath), $link_dest))
838 258 0 51 not $self->{'compat'} and -d $target_subdir
1500 0 1433 25 defined $path_regexp and ("/$target") =~ /$path_regexp/
1506 99 1308 26 defined $segment_regexp and $basename =~ /$segment_regexp/
1896 1498 0 9 exists $self->{'link_task_for'}{$prefix} and $self->{'link_task_for'}{$prefix}{'action'} eq "remove"
2238 49 0 0 exists $self->{'dir_task_for'}{$file} and $self->{'dir_task_for'}{$file} eq "create"

or 2 conditions

line l !l condition
1390 2 6 $self->{'conflicts'}{$action}{$package} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
137 0 90 0 ref $self || $self
1596 16 96 286 /^#/ or length $_ == 0
1834 22 20 0 $action eq "remove" or $action eq "create"
1866 4 28 0 $action eq "remove" or $action eq "create"