Branch Coverage

blib/lib/Mojo/Asset/File.pm
Criterion Covered Total %
branch 24 26 92.3


line true false branch
32 75 44 unless $self->cleanup and defined(my $path = $self->path)
33 44 0 if (my $handle = $self->handle)
36 43 1 if -w $path and ($self->{'pid'} // $$) == $$
41 2 61 unless ($self->handle->syswrite($chunk) // -1) == length $chunk
54 4 65 $len > 131072 ? :
55 31 38 if $size > $end - $self->start_range
64 54 52 $diff < $size ? :
69 52 54 if $pos >= 0
70 15 39 if $read == 0 or ($offset += $read) == $end
88 32 102 if (defined(my $end = $self->end_range)) { }
89 9 23 if (my $chunk = $end + 1 - $offset) <= 0
90 6 17 $chunk > $max ? :
126 34 0 defined $ret ? :