Branch Coverage

lib/Class/Composite/Container.pm
Criterion Covered Total %
branch 28 46 60.8


line true false branch
60 0 1 unless my $elem = shift()
61 0 1 unless ref $elem eq 'ARRAY'
74 1 0 unless defined $elem
75 0 0 if $elem >= $self->nOfElements
76 0 0 if $elem < 0
92 1 8 unless $self->_addThis('this', $_)
108 0 1 unless $self->_addThis('this', $_, 'flat', 1)
122 1 9 unless $self->checkElement($object)
123 1 8 if ($flat and ref $object) { }
124 1 0 $object->isa('Class::Composite::Container') ? :
149 0 10 unless my $type = $self->elementType
150 1 9 unless defined $elem
151 8 1 if (blessed $elem) { }
168 1 4 unless defined $id
170 0 5 unless exists $$self{'elements'}
172 4 1 if (defined $$self{'elements'}[$id]) { }
191 0 7 unless $$self{'elements'}
192 7 0 unless defined $end
206 0 1 unless defined $index
230 1 6 unless scalar @{$_[0]{'elements'};}
255 0 0 unless ($self->decrPointer)
303 0 1 if $i >= $self->nOfElements
304 0 1 if $i < 0