Branch Coverage

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


line true false branch
49 0 20 unless (defined $cid)
54 3 17 if (defined $prev_cid and $prev_cid ne $cid)
57 0 3 if $cid_indices{$cid}
91 1 14 unless my $item = $items[$n]
130 1 7 unless (@items == 1)
139 2 5 if (defined $name and $have ne $name)
158 0 3 unless defined $name
162 1 2 unless (@sentences)
166 1 1 if (@sentences > 1)
185 0 0 unless defined $n
189 0 0 unless (@sentences == $n)
208 1 6 unless my $indices = $self->_para_indices->[$n]
253 0 2 unless defined $n
256 1 1 unless ($n == @para_indices)
275 0 2 unless defined $cid
278 0 2 unless my $indices = $self->_cid_indices->{$cid}