Branch Coverage

blib/lib/ChainMake.pm
Criterion Covered Total %
branch 87 132 65.9


line true false branch
48 9 21 defined $$self{$_} ? :
18 30 defined $args{$_} ? :
55 22 8 unless ref $targets eq 'ARRAY'
58 1 29 unless (@{$targets;} > 0 and keys %target_t)
64 1 56 unless (defined $TARGETTYPE_PARAMS{$_})
69 4 52 unless (&{$TARGETTYPE_PARAMS{$_};}($target_t{$_}))
75 2 22 unless (defined $target_t{'requirements'} or defined $target_t{'handler'})
79 1 21 if (defined $target_t{'timestamps'} and not defined $target_t{'handler'})
92 0 188 unless ($t_name)
99 11 177 unless ($target)
100 0 11 if ($t_name eq 'help') { }
111 4 173 if ($t_name =~ /^(.+)\.([^\.]+)$/)
116 101 76 ref $$target{'timestamps'} eq 'ARRAY' ? :
97 80 ref $$target{'requirements'} eq 'ARRAY' ? :
132 101 76 if (defined $$target{'timestamps'} and ref $$target{'timestamps'} eq 'ARRAY' and @{$$target{'timestamps'};} > 0) { }
66 10 elsif (defined $$target{'timestamps'} and $$target{'timestamps'} eq 'once') { }
137 25 76 if ($missing)
145 28 38 if ($ts) { }
160 97 80 if (ref $$target{'requirements'} eq 'ARRAY')
162 97 0 if ($youngest_req) { }
164 16 81 if $oldest and $youngest_req > $oldest
175 0 177 if ($cannot_make)
181 88 89 unless ($must_make)
183 64 24 if (ref $$target{'timestamps'} eq 'ARRAY' and @{$$target{'timestamps'};} > 0) { }
24 0 elsif ($$target{'timestamps'} eq 'once') { }
185 0 64 if ($missing)
202 2 87 unless (ref $$target{'handler'} eq 'CODE')
214 83 4 if ($success) { }
217 35 48 if (ref $$target{'timestamps'} eq 'ARRAY' and @{$$target{'timestamps'};} > 0) { }
40 8 elsif ($$target{'timestamps'} eq 'once') { }
219 0 35 if ($missing)
238 2 2 if (ref $$target{'timestamps'} eq 'ARRAY' and @{$$target{'timestamps'};} > 0)
240 2 0 if (-e $timestamps)
242 0 2 unless unlink $timestamps
254 0 0 if ($^O =~ /MSWin32/) { }
263 0 0 if ($? == -1) { }
0 0 elsif ($? & 127) { }
267 0 0 $? & 128 ? :
281 0 0 if ($? == -1) { }
0 0 elsif ($? & 127) { }
285 0 0 $? & 128 ? :
303 0 0 if $col++ == 3
322 107 0 if ($self->_match_target($dep)) { }
0 0 elsif (-e $dep) { }
324 0 107 unless ($age)
328 0 0 unless $insistent
340 0 0 unless $insistent
344 100 7 if (not $youngest or $age and $age > $youngest)
348 0 97 $cannot_make ? :
356 149 717 if (ref $name eq 'Regexp') { }
362 284 582 if ($match)
374 175 25 if (-e $timestamps) { }
376 175 0 unless $youngest and $youngest >= $mtime
377 175 0 unless $oldest and $oldest <= $mtime
389 0 66 unless my $tie = tie(my @array, 'Tie::File', $$self{'timestamps_file'}, 'memory', 0, 'mode', 64)
393 28 161 if ($t eq $target)
407 0 40 unless my $tie = tie(my @array, 'Tie::File', $$self{'timestamps_file'}, 'memory', 0)
412 113 4 unless $t eq $target
425 0 15 unless my $tie = tie(my @array, 'Tie::File', $$self{'timestamps_file'}, 'memory', 0)
430 11 5 if ($t eq $target)
450 20 183 if ($type == 0) { }
0 183 elsif ($type == 1) { }
183 0 elsif ($type == 2) { }
451 0 20 unless $$self{'silent'}
453 0 0 unless $$self{'silent'}
456 0 183 if $$self{'verbose'} and not $$self{'silent'}