Branch Coverage

blib/lib/Asset/File.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
59 6 9 unless $self->cleanup and defined(my $path = $self->path)
61 9 0 if -w $path
70 1 18 if ($self->start_range) { }
76 0 19 unless defined $handle->syswrite($chunk, length $chunk)
90 2 35 $len > 131072 ? :
91 18 19 if $size > $end - $self->start_range
100 29 26 $diff < $size ? :
105 29 26 if $pos >= 0
106 7 19 if $read == 0 or ($offset += $read) == $end
124 7 1 if (defined(my $end = $self->end_range)) { }
125 0 7 if (my $chunk = $end + 1 - $offset) <= 0
126 3 4 $chunk > $max ? :
175 0 2 unless move($from, $to)
186 0 5 unless defined(my $path = (shift())->path)
187 0 5 unless open my $file, '<', $path