Branch Coverage

lib/Provision/Unix.pm
Criterion Covered Total %
branch 39 56 69.6


line true false branch
45 13 0 if ($config) { }
59 294 0 if ($mess)
61 0 294 if $$self{'debug'}
72 0 13 if $last_line == scalar @{$$self{'audit'};}
78 954 205 if $i < $last_line
89 0 10 if $last_line == scalar @{$$self{'errors'};}
95 32 21 if $i < $last_line
118 42 1 if ($message) { }
134 10 33 if ($debug)
139 2 41 if ($fatal)
140 0 2 unless ($debug)
167 2 17 if $etcdir
175 1 16 if $r
178 14 2 if (-r "./$file-dist")
198 0 0 if ref $$self{'dns'}
209 0 15 if defined $debug
220 0 15 if defined $fatal
226 1 0 if scalar @{$$self{'errors'};}
232 3 11 if ref $$self{'util'}
265 0 4 if ($err)
266 0 0 if (length $err == 1) { }
277 0 4 if ($msg_length > 54)
300 3 1 if ($num == 10)
308 17 85 unless my $dir = shift()
312 2 83 if (-r "$dir/$file")
318 49 34 if (-d $dir)
321 0 49 if (not -r $dir) { }
327 0 49 if (-e "$dir/$file")