Condition Coverage

blib/lib/MojoMojo/Declaw.pm
Criterion Covered Total %
condition 41 102 40.2


and 3 conditions

line !l l&&!r l&&r condition
1111 0 0 345 defined $4 and $4 =~ /^([`"']?)(.*)\1$/s
1230 4 0 0 $EndRestartCommentsText and $CommentData =~ s/^(.*?)(>.*)$/$2/s
1509 4 0 0 not $IsAttr and $IsEndTag
1742 0 6 0 $Self->{'url_callback'} and $Value =~ /\s*url\(\s*((?:['"])?)(.*?)\1\s*\)/i
1786 4 0 0 $Self->{'Debug'} and $#Selectors > $#SelectorRules
1810 4 2 0 $k > 0 and not $$ExtraData{lc $Key}
1814 0 0 0 defined $PrevExtra[0][4] and not $PrevExtra[0][4] =~ /;/
1830 4 0 0 $SelectorsIn->[$Counter] and not $IsAttr
1942 0 0 344 $Self->{'url_callback'} and $AttribRule
0 344 0 $Self->{'url_callback'} and $AttribRule and exists $UrlRules{$AttribRule}
1966 0 344 0 $Self->{'attribs_callback'} and exists $Self->{'attribs_to_callback'}{$lcAttrKey}
1978 169 0 175 $DefangAttrib == 2 and $AttribRule
1984 0 4 171 ref $Rule eq 'Regexp' and $AttrValStripped =~ /$Rule/
2067 30 1 1177 $DefangTag == 2 and my $TagOps = $Tags{$lcTag}
2071 0 1208 0 $Self->{'fix_mismatched_tags'} and $DefangTag == 2 || $DefangTag == 0
2078 617 591 0 $IsEndTag and $Self->{'mismatched_tags_to_fix'}{$lcTag}
2087 0 0 148 $PreviousOpenedTag eq $lcTag and not $ClosingTags
2109 148 0 0 $ClosingTags and @$OpenedTags
148 0 0 $ClosingTags and @$OpenedTags and $lcTag eq $$OpenedTags[@$OpenedTags - 1]
2121 591 453 164 not $IsEndTag and @$OpenedTags
2131 0 22 0 $ImplicitTags and not $ImplicitTags->{$lastTag}
2146 591 617 0 not $IsEndTag and $Self->{'mismatched_tags_to_fix'}{$lcTag}
2191 2 0 9 defined $1 && hex $1 < 1114111 && hex $1 != 65535 && !(hex $1 > 55295 && hex $1 < 57344)
2193 0 0 0 defined $1 && $1 < 1114111 && $1 != 65535 && !($1 > 55295 && $1 < 57344)

or 2 conditions

line l !l condition
1543 0 0 $1 || '<!--'
0 0 $3 || '-->'
2033 18 0 $Attr->[0] || ''

or 3 conditions

line l !l&&r !l&&!r condition
703 0 141 0 ref $Proto || $Proto
1105 345 0 228 defined $1 or defined $4
1223 4 0 0 $I =~ /\G(.*?)(\Q$ClosingCommentDelim\E!?\s*)(>)/cgis or $I =~ /\G(.*?)(--)(>)/cgis
1591 4 0 0 $Spaces or $IsAttr
2039 344 0 0 $QuoteRe{$Attr->[3]} || $QuoteRe{''}
2071 1 1207 0 $DefangTag == 2 || $DefangTag == 0
2098 0 0 0 $NestList->{''} or $NestList->{$lcTag}
2231 0 0 0 defined $1 or defined $4