Branch Coverage

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


line true false branch
15 1 2142 if $self->{'frozen'}
16 12 2130 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 16 6 if $offset + $max > $end
22 2574 if (my $end = $self->end_range)
46 6 0 if path($_[1])->spew($_[0]{'content'} // "")