Branch Coverage

blib/lib/File/Append/TempFile.pm
Criterion Covered Total %
branch 18 38 47.3


line true false branch
93 0 0 if @_ > 1
108 1 2 if @_ > 1
128 0 3 if ($self->{'f'})
129 0 0 unless $self->rollback
133 0 3 unless (open $orig, '<', $fname)
140 0 3 unless (defined $f)
144 0 3 unless $self->do_copy($orig, $f)
165 0 4 unless (defined $f)
170 0 4 unless (print $f $line)
194 0 1 unless (defined $f and defined $self->{'fname'})
201 1 0 if (defined $self->{'stat'})
203 0 1 unless (chmod $self->{'stat'}[2], $f)
209 0 1 unless (chown $self->{'stat'}[4], $self->{'stat'}[5], $f)
216 0 1 unless (rename $f, $self->{'fname'})
244 2 0 if (defined $self->{'f'})
274 0 12 if ($self->{'debug'} or $debug)
302 0 1 if $debug
303 0 1 if $debug
305 1 0 if $tempfiles{$_}{'f'}