Branch Coverage

lib/HTML/Object/TokenList.pm
Criterion Covered Total %
branch 9 32 28.1


line true false branch
35 1 0 if (defined $tokens and CORE::length $tokens)
41 0 1 unless $self->SUPER::init(@_)
69 0 0 if ref $code ne "CODE"
72 0 0 if $elem
74 0 0 if ($elem)
77 0 0 if $before ne $after
87 0 5 if (@_) { }
98 5 0 if ($attr and $elem)
101 5 0 if ($elem_tokens eq $self->tokens) { }
125 0 0 $self->items->replace(@_) ? :
149 0 0 if ($self->items->has($token)) { }
151 0 0 $self->items->remove($token) ? :
167 2 0 if (scalar @_)
169 0 2 if (scalar @_ == 1 and not defined $_[0]) { }
195 0 1 unless ref $elem
208 0 4 if ($self->_is_array($_)) { }