Branch Coverage

blib/lib/Slay/MakerRule.pm
Criterion Covered Total %
branch 99 130 76.1


line true false branch
80 42 9 ref $rule eq 'ARRAY' ? :
51 0 if defined $rule
82 51 0 if (@rule)
85 0 51 unless $acts_of{$ident}
86 0 51 unless $deps_of{$ident}
87 0 51 unless $opts_of{$ident}
88 0 51 unless $pats_of{$ident}
90 1 50 if ref $rule[-1] eq 'HASH'
97 115 35 unless (ref $e)
98 9 106 if ($e =~ /^:$/)
99 22 84 if ($e =~ /^=$/)
100 12 72 if ($e =~ s/:$//)
101 18 66 if ($e =~ s/=$//)
104 30 89 if defined $na
147 0 0 defined $5 ? :
1 0 defined $3 || defined $4 ? :
2 1 defined $1 || defined $2 ? :
164 53 0 ref $_[-1] ? :
175 0 53 if $$options{'debug'}
177 2 51 if ($in_make_of{$ident}++)
184 5 46 if $$options{'force'}
185 35 16 unless $make->e($target)
187 0 51 if ($$options{'debug'} and $make->e($target))
201 3 24 if (ref $_ eq 'CODE') { }
3 21 elsif (/\$/) { }
213 0 51 if $$options{'debug'} and @deps
219 15 36 if $count
221 10 41 unless (@required)
226 0 7 if $$options{'debug'}
229 0 7 if $$options{'debug'}
231 6 1 if defined $dep_mtime and !defined($max_mtime) || $dep_mtime > $max_mtime
235 4 6 if defined $max_mtime and $max_mtime > $make->mtime($target)
243 45 6 if (@required) { }
244 0 45 if $$options{'debug'}
249 0 6 if $$options{'debug'}
263 49 2 if (ref $pat ne 'Regexp') { }
276 4 177 if ($1 eq '?') { }
8 169 elsif ($1 eq '*') { }
3 166 elsif ($1 eq '**') { }
6 160 elsif ($1 eq '(') { }
6 154 elsif ($1 eq ')') { }
6 148 elsif (length $1 > 1) { }
317 1 6 if (substr($1, 0, 1) eq '\\') { }
4 2 elsif (substr($1, 0, 1) eq '(') { }
320 2 2 if substr($1, 0, 2) ne '(?'
351 44 0 ref $_[-1] eq 'HASH' ? :
356 0 44 if $$options{'debug'}
361 2 42 if ($$options{'detect_no_size_change'} || $$options{'detect_no_diffs'} and not -d $target)
374 0 44 if ($$options{'auto_create_dirs'})
378 0 0 unless (-d $dir)
380 0 0 unless -d $dir
391 30 14 if (ref $act eq 'CODE') { }
1 13 elsif (ref $act eq 'ARRAY') { }
13 0 elsif (not ref $act) { }
392 0 30 if $$options{'debug'}
395 0 30 unless defined $out
399 0 1 if $$options{'debug'}
410 0 13 if $$options{'debug'}
427 2 42 if (defined $target_backup)
437 44 0 wantarray ? :
451 0 8 wantarray ? :
463 133 12 ref $_[-1] eq 'HASH' ? :
471 49 96 unless ($compiled_pats_of{$ident})
484 69 1 if ($target =~ /$re/ and !defined($max_exactness) || $exactness > $max_exactness)
501 69 76 defined $max_exactness ? :