Branch Coverage

lib/HTML/Object/DOM/List.pm
Criterion Covered Total %
branch 0 34 0.0


line true false branch
34 0 0 unless $self->SUPER::init(@_)
56 0 0 if scalar @_ < 3
60 0 0 if not defined $def or ref $def ne "HASH"
61 0 0 unless defined $type and $type =~ /^\w+#/
62 0 0 if not defined $code && CORE::length "$code" or ref $code ne "CODE"
64 0 0 if (exists $def->{$type})
73 0 0 if (not exists $this->{$_} && defined $this->{$_} && CORE::length $this->{$_}) { }
0 0 elsif ($_ ne 'add' and $_ ne 'remove') { }
75 0 0 if warnings::enabled("HTML::Object")
86 0 0 unless (defined $subref)
88 0 0 if warnings::enabled("HTML::Object")
92 0 0 unless ($self->_is_object($data) and $data->can("callback"))
94 0 0 if warnings::enabled("HTML::Object")
99 0 0 if defined $cb and ref $cb
104 0 0 if (exists $this->{'callback'} and ref $this->{'callback'} eq "CODE")
138 0 0 unless $children
140 0 0 unless $code