Condition Coverage

blib/lib/HTML/PrettyPrinter.pm
Criterion Covered Total %
condition 46 78 58.9


and 3 conditions

line !l l&&!r l&&r condition
247 0 0 9 ref $tag_or_elem and $tag_or_elem->isa('HTML::Element')
0 0 28 ref $tag_or_elem and $tag_or_elem->isa('HTML::Element')
0 0 32 ref $tag_or_elem and $tag_or_elem->isa('HTML::Element')
0 0 32 ref $tag_or_elem and $tag_or_elem->isa('HTML::Element')
0 0 32 ref $tag_or_elem and $tag_or_elem->isa('HTML::Element')
0 0 64 ref $tag_or_elem and $tag_or_elem->isa('HTML::Element')
0 0 33 ref $tag_or_elem and $tag_or_elem->isa('HTML::Element')
508 122 1 1 $wrap and $wsp
122 0 1 $wrap and $bp
530 57 19 46 $wsp and $pos
567 3 29 0 $req_nl and $wsp || $self->allow_forced_nl && $self->force_nl($elem)
667 12 0 20 @attr and $self->wrap_at_tagend == 1
687 26 0 1 $req_nl and substr($c, 0, 1) eq ' '
716 21 9 0 $HTML::Element::optionalEndTag{$tag} and not $self->endtag($elem)
719 25 5 0 $req_nl > 0 and $wsp
742 3 10 19 $req_nl and $self->allow_forced_nl
13 0 19 $req_nl and $self->allow_forced_nl and $self->force_nl($elem)
771 17 1 2 $a eq lc $v and $self->min_bool_attr
18 0 2 $a eq lc $v and $self->min_bool_attr and exists $HTML::Tagset::boolean_attr{$e->tag}
1 2 0 $a eq lc $v and $self->min_bool_attr and exists $HTML::Tagset::boolean_attr{$e->tag} and ref $HTML::Tagset::boolean_attr{$e->tag} ? $HTML::Tagset::boolean_attr{$e->tag}{$a} : $HTML::Tagset::boolean_attr{$e->tag} eq $a
781 13 0 0 $v =~ tr/"// && !($v =~ tr/'//)

or 3 conditions

line l !l&&r !l&&!r condition
567 15 0 14 $wsp || $self->allow_forced_nl && $self->force_nl($elem)
589 0 0 32 $HTML::PrettyPrinter::noformattags{$tag} or $tag =~ /^~/
667 0 0 32 $self->wrap_at_tagend == -1 or @attr and $self->wrap_at_tagend == 1
716 2 0 30 $HTML::Element::emptyElement{$tag} or $HTML::Element::optionalEndTag{$tag} and not $self->endtag($elem)
779 12 0 6 $self->quote_attr or $v =~ tr[\-.0-9A-Za-z](\000-,/:-@[-`{-\377)c