Condition Coverage

lib/HTML/Object/TokenList.pm
Criterion Covered Total %
condition 4 15 26.6


and 3 conditions

line !l l&&!r l&&r condition
35 0 0 1 defined $tokens and CORE::length $tokens
98 0 0 5 $attr and $elem
169 0 2 0 scalar @_ == 1 and not defined $_[0]

or 2 conditions

line l !l condition
68 0 0 shift @_ || (return $self->error('No anonymous subroutine was provided.'))
146 0 0 shift @_ || (return $self->error('No token was provided to toggle.'))
196 1 0 $self->attribute || (return $self)