Branch Coverage

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


line true false branch
64 0 375 $annot2 ? :
82 0 36 if ($pos > $self->len)
94 5 31 $pos == $self->len ? :
100 0 31 if (defined $piece and @{$piece->{'annot2'};} and $pos == $piece->{'pos'})
113 0 36 if ($pos + $len > $self->len)
118 5 31 if ($pos + $len == $self->len)
139 0 31 if ($new_len == 0)
142 0 0 if (defined $next_piece and @{$piece->{'annot2'};})
163 0 5 if ($new_len == 0)
174 0 26 if ($pos + $len > $self->len)
185 16 10 if ($pos + $len == $self->len)
198 0 10 if (@{$piece->{'annot2'};} and $pos == $piece->{'pos'})
213 0 10 if ($new_len == 0)
234 11 5 if ($new_len == 0)
269 7735 93 if ($self->_is_pos_inside_range($pos, $piece->{'offset'}, $piece->{'len'})) { }
49 44 elsif ($pos > $piece->{'offset'}) { }
281 0 7735 unless (defined $index)
313 15 57 if ($pos == $old_piece->{'start'})
350 72 21 if ($self->_is_pos_inside_range($pos, $piece->{'pos'}, $piece->{'len'})) { }
21 0 elsif ($pos > $piece->{'pos'}) { }
366 0 72 unless (defined $index)
376 0 72 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)