Branch Coverage

blib/lib/Mojo/Asset/Memory.pm
Criterion Covered Total %
branch 13 14 92.8


line true false branch
15 1 2118 if $self->{'frozen'}
16 12 2106 if ($self->auto_upgrade and $self->size + length($chunk) > $self->max_memory_size)
30 16 69 if $start and $pos >= 0
33 2 83 $end && $pos + length($str) >= $end ? :
41 14 6 if $offset + $max > $end
20 2546 if (my $end = $self->end_range)
46 6 0 if path($_[1])->spurt($_[0]{'content'} // "")