Branch Coverage

blib/lib/JMAP/Tester/Role/SentenceCollection.pm
Criterion Covered Total %
branch 22 32 68.7


line true false branch
48 0 18 unless (defined $cid)
53 3 15 if (defined $prev_cid and $prev_cid ne $cid)
56 0 3 if $cid_indices{$cid}
90 1 14 unless my $item = $items[$n]
129 1 7 unless (@items == 1)
138 2 5 if (defined $name and $have ne $name)
157 0 3 unless defined $name
161 1 2 unless (@sentences)
165 1 1 if (@sentences > 1)
184 0 0 unless defined $n
188 0 0 unless (@sentences == $n)
207 1 6 unless my $indices = $self->_para_indices->[$n]
252 0 2 unless defined $n
255 1 1 unless ($n == @para_indices)
274 0 2 unless defined $cid
277 0 2 unless my $indices = $self->_cid_indices->{$cid}