Branch Coverage

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


line true false branch
64 0 247 $annot2 ? :
82 0 16 if ($pos > $self->len)
94 1 15 $pos == $self->len ? :
100 0 15 if (defined $piece and @{$piece->{'annot2'};} and $pos == $piece->{'pos'})
113 0 16 if ($pos + $len > $self->len)
118 1 15 if ($pos + $len == $self->len)
139 0 15 if ($new_len == 0)
142 0 0 if (defined $next_piece and @{$piece->{'annot2'};})
163 0 1 if ($new_len == 0)
174 0 14 if ($pos + $len > $self->len)
185 12 2 if ($pos + $len == $self->len)
198 0 2 if (@{$piece->{'annot2'};} and $pos == $piece->{'pos'})
213 0 2 if ($new_len == 0)
234 11 1 if ($new_len == 0)
269 2161 60 if ($self->_is_pos_inside_range($pos, $piece->{'offset'}, $piece->{'len'})) { }
29 31 elsif ($pos > $piece->{'offset'}) { }
281 0 2161 unless (defined $index)
313 3 29 if ($pos == $old_piece->{'start'})
350 32 13 if ($self->_is_pos_inside_range($pos, $piece->{'pos'}, $piece->{'len'})) { }
13 0 elsif ($pos > $piece->{'pos'}) { }
366 0 32 unless (defined $index)
376 0 32 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)