Condition Coverage

blib/lib/HTML/Obj2HTML.pm
Criterion Covered Total %
condition 7 74 9.4


and 3 conditions

line !l l&&!r l&&r condition
322 0 0 0 ref $c eq "ARRAY" and $collapsearrayrefs
393 0 0 0 not ref $inserto and $inserto =~ /staticfile:(.*)/
0 0 0 not ref $inserto and $inserto =~ /file:(.*)/
413 0 0 0 not ref $inserto and $inserto =~ /staticfile:(.*)/
0 0 0 not ref $inserto and $inserto =~ /file:(.*)/
448 0 0 0 $query =~ /\#(.*)/ and $attrs{'id'} eq $1
0 0 0 $query =~ /^([^\#\.]\S*)/ and $tag eq $1
513 0 0 0 ref $attr eq "HASH" and ($tags{$tag} & 2) == 0
519 0 3 3 $attr and not ref $attr
532 0 0 0 defined $extensions{$origtag}{'scalarattr'} and not ref $attr
574 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'}
590 0 0 0 $attr->{'cond'} and $attr->{'true'}
0 0 0 not $attr->{'cond'} and $attr->{'false'}
687 5 0 0 $tags{$tag} & 2 and ref $attr ne "HASH"
692 0 5 0 $warn_on_unknown_tag and not defined $tags{$tag}
737 0 0 0 $val->{'cond'} and $val->{'true'}
0 0 0 not $val->{'cond'} and $val->{'false'}
747 0 0 0 $attrs{$k}{'if'} and defined $attrs{$k}{'true'}
0 0 0 not $attrs{$k}{'if'} and defined $attrs{$k}{'false'}
794 6 0 0 defined $extensions{$origtag} and defined $extensions{$origtag}{'after'}

or 2 conditions

line l !l condition
318 0 0 shift() || 0
433 0 0 shift() || []
725 0 0 $attrs{$k} || ''
755 0 0 $attrs{$k} || ''

or 3 conditions

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