Condition Coverage

blib/lib/HTML/Restrict.pm
Criterion Covered Total %
condition 27 34 79.4


and 3 conditions

line !l l&&!r l&&r condition
148 26 4 4 $tagname eq "img" and $self->replace_img
25 1 4 $tagname eq "br" and $self->create_newlines
22 1 3 $tagname eq "p" and $self->create_newlines
230 161 0 0 exists $attr->{'/'} and $attr->{'/'} eq "/"
346 1 9 188 $self->trim and $text
369 2 1 4 $tag eq $closing_tag and $found == 0

or 2 conditions

line l !l condition
238 4 157 $self->_processed || ''
252 0 4 $self->_processed || ''
255 4 0 $self->_processed || ''
258 3 0 $self->_processed || ''
276 159 0 $self->_processed || ''
297 178 25 $self->_processed || ''
308 1 1 $self->_processed || ''
319 0 2 $self->_processed || ''