Branch Coverage

lib/HTML/Object/DOM/Collection.pm
Criterion Covered Total %
branch 7 22 31.8


line true false branch
45 2 2 if $self->_can($_, "id") and $_->id eq $name
46 0 2 if $self->_can($_, "name") and $_->name eq $name
48 0 0 if (Want::want('OBJECT')) { }
0 0 elsif (Want::want('ARRAY')) { }
0 0 elsif (Want::want('HASH')) { }
0 0 elsif (Want::want('CODE')) { }
0 0 elsif (Want::want('REFSCALAR')) { }
79 0 6 unless scalar @_
80 0 6 unless defined $_[0]
81 0 6 unless &Scalar::Util::blessed($_[0])
90 0 1 unless defined $self