Condition Coverage

lib/HTML/Object/EventListener.pm
Criterion Covered Total %
condition 4 8 50.0


or 2 conditions

line l !l condition
53 2 0 $self->element || (return $self->error({'message', 'No element object found in our event listener!', 'class', 'HTML::Object::SyntaxError'}))
58 2 0 $self->type || (return $self->error({'message', 'No event type found in our event listener!', 'class', 'HTML::Object::SyntaxError'}))
63 2 0 $self->code || (return $self->error({'message', 'No event callabck found in our event listener!', 'class', 'HTML::Object::SyntaxError'}))
69 2 0 $opts->{'capture'} //= 0