Branch Coverage

lib/App/Sandy/PieceTable.pm
Criterion Covered Total %
branch 29 56 51.7


line true false branch
64 0 371 $annot2 ? :
82 0 40 if ($pos > $self->len)
94 5 35 $pos == $self->len ? :
100 0 35 if (defined $piece and @{$piece->{'annot2'};} and $pos == $piece->{'pos'})
113 0 40 if ($pos + $len > $self->len)
118 5 35 if ($pos + $len == $self->len)
139 0 35 if ($new_len == 0)
142 0 0 if (defined $next_piece and @{$piece->{'annot2'};})
163 0 5 if ($new_len == 0)
174 0 30 if ($pos + $len > $self->len)
185 20 10 if ($pos + $len == $self->len)
198 0 10 if (@{$piece->{'annot2'};} and $pos == $piece->{'pos'})
213 0 10 if ($new_len == 0)
234 15 5 if ($new_len == 0)
269 7799 125 if ($self->_is_pos_inside_range($pos, $piece->{'offset'}, $piece->{'len'})) { }
65 60 elsif ($pos > $piece->{'offset'}) { }
281 0 7799 unless (defined $index)
313 15 65 if ($pos == $old_piece->{'start'})
350 80 25 if ($self->_is_pos_inside_range($pos, $piece->{'pos'}, $piece->{'len'})) { }
25 0 elsif ($pos > $piece->{'pos'}) { }
366 0 80 unless (defined $index)
376 0 80 unless ($piece->{'is_orig'})
382 0 0 if ($piece->{'is_orig'})
383 0 0 if ($self->_is_pos_inside_range($pos, $piece->{'pos'}, $piece->{'len'}))
391 0 0 unless (defined $new_index)
395 0 0 if ($piece->{'is_orig'})
396 0 0 if ($self->_is_pos_inside_range($pos, $piece->{'pos'}, $piece->{'len'}))
405 0 0 unless (defined $new_index)