Condition Coverage

blib/lib/HTML/Obj2HTML.pm
Criterion Covered Total %
condition 11 80 13.7


and 3 conditions

line !l l&&!r l&&r condition
311 0 0 0 ref $c eq "ARRAY" and $collapsearrayrefs
382 0 0 0 not ref $inserto and $inserto =~ /staticfile:(.*)/
0 0 0 not ref $inserto and $inserto =~ /file:(.*)/
402 0 0 0 not ref $inserto and $inserto =~ /staticfile:(.*)/
0 0 0 not ref $inserto and $inserto =~ /file:(.*)/
437 0 0 0 $query =~ /\#(.*)/ and $attrs{'id'} eq $1
0 0 0 $query =~ /^([^\#\.]\S*)/ and $tag eq $1
501 0 0 0 ref $attr eq "HASH" and ($tags{$tag} & 2) == 0
507 3 3 0 not ref $attr and $attr =~ /staticfile:(.+)/
3 3 0 not ref $attr and $attr =~ /file:(.+)/
3 3 0 not ref $attr and $attr =~ /raw:(.+)/
518 0 0 0 defined $extensions{$origtag}{'scalarattr'} and not ref $attr
560 5 0 0 ref $attr eq "HASH" and defined $attr->{'removeif'}
5 0 0 ref $attr eq "HASH" and defined $attr->{'removeif'} and $attr->{'removeif'}
576 0 0 0 $attr->{'cond'} and $attr->{'true'}
0 0 0 not $attr->{'cond'} and $attr->{'false'}
673 5 0 0 $tags{$tag} & 2 and ref $attr ne "HASH"
678 0 5 0 $warn_on_unknown_tag and not defined $tags{$tag}
723 0 0 0 $val->{'cond'} and $val->{'true'}
0 0 0 not $val->{'cond'} and $val->{'false'}
733 0 0 0 $attrs{$k}{'if'} and defined $attrs{$k}{'true'}
0 0 0 not $attrs{$k}{'if'} and defined $attrs{$k}{'false'}
780 6 0 0 defined $extensions{$origtag} and defined $extensions{$origtag}{'after'}

or 2 conditions

line l !l condition
307 0 0 shift() || 0
422 0 0 shift() || []
711 0 0 $attrs{$k} || ''
741 0 0 $attrs{$k} || ''

or 3 conditions

line l !l&&r !l&&!r condition
620 0 0 0 $attr->{'currency'} || $default_currency