Condition Coverage

blib/lib/HTML/Blitz/RuleSet.pm
Criterion Covered Total %
condition 68 131 51.9


and 3 conditions

line !l l&&!r l&&r condition
71 0 0 1 $p1->{'type'} eq ":AT-P-VARIABLE" and $p2->{'type'} eq ":AT-P-VARIABLE"
77 0 0 4 $t1->{'type'} eq ":AT-P-TRANSFORM" and $t2->{'type'} eq ":AT-P-TRANSFORM"
165 0 0 0 $aa1->{'type'} eq ":AT-A-MODIFY-ATTR" and $aa2->{'type'} eq ":AT-A-MODIFY-ATTR"
188 0 0 64 $asa1->{'type'} eq ":AT-AS-MODIFY-ATTRS" and $asa2->{'type'} eq ":AT-AS-MODIFY-ATTRS"
199 0 0 0 defined $act1 && defined $act2
229 0 0 79 $act1->{'type'} eq ":AT-REPLACE-INNER" and $act2->{'type'} eq ":AT-REPLACE-INNER"
248 5 0 0 $action->{'else'} && _bind_scope($scope, $action->{'else'})
286 9 0 3 $value->{'type'} eq ":AT-P-VARIABLE" and not defined $value->{'value'}[0]
301 27 10 7 $value->{'type'} eq ":AT-A-SET-ATTR" and $value->{'param'}{'type'} eq ":AT-P-VARIABLE"
37 0 7 $value->{'type'} eq ":AT-A-SET-ATTR" and $value->{'param'}{'type'} eq ":AT-P-VARIABLE" and not defined $value->{'param'}{'value'}[0]
14 18 5 $value->{'type'} eq ":AT-A-MODIFY-ATTR" and @{+(my $param = $value->{'param'})->{'dynamic'}}
324 169 0 36 $param->{'type'} eq ':AT-P-VARIABLE' || $param->{'type'} eq ':AT-P-VARHTML' and not defined $param->{'value'}[0]
124 22 23 $param->{'type'} eq ":AT-P-TRANSFORM" and @{$param->{'dynamic'};}
360 194 49 0 @_ > 2 and (@_ - 2) % 2
365 192 0 49 $collect_content and $token->{'type'} eq ":TT-TEXT"
416 1183 358 5 defined $action and $action->{'type'} eq ":AT-REMOVE-IF"
434 1052 132 3 $token->{'is_self_closing'} && !$token->{'is_void'}
551 64 268 1 $param->{'pristine'} and $param->{'value'} =~ /$self->{'dummy_marker_re'}/u

or 2 conditions

line l !l condition
364 532 0 $parser->parse // die("Internal error: missing '' in parser results")

or 3 conditions

line l !l&&r !l&&!r condition
91 0 0 2 $p2->{'type'} eq ":AT-P-FRAGMENT" or $p2->{'type'} eq ":AT-P-TRANSFORM"
94 2 0 0 $p2->{'type'} eq ":AT-P-IMMEDIATE" or $p2->{'type'} eq ":AT-P-VARIABLE"
2 0 0 $p2->{'type'} eq ":AT-P-IMMEDIATE" or $p2->{'type'} eq ":AT-P-VARIABLE" or $p2->{'type'} eq ":AT-P-VARHTML"
103 0 0 0 $p1->{'type'} eq ":AT-P-IMMEDIATE" or $p1->{'type'} eq ":AT-P-VARIABLE"
0 0 0 $p1->{'type'} eq ":AT-P-IMMEDIATE" or $p1->{'type'} eq ":AT-P-VARIABLE" or $p1->{'type'} eq ":AT-P-VARHTML"
109 0 0 0 $p2->{'type'} eq ":AT-P-VARHTML" or $p2->{'type'} eq ":AT-P-TRANSFORM"
112 0 0 0 $p2->{'type'} eq ":AT-P-IMMEDIATE" or $p2->{'type'} eq ":AT-P-VARIABLE"
120 0 0 0 $p1->{'type'} eq ":AT-P-IMMEDIATE" or $p1->{'type'} eq ":AT-P-VARIABLE"
129 1 0 0 $p2->{'type'} eq ":AT-P-IMMEDIATE" or $p2->{'type'} eq ":AT-P-VARIABLE"
135 0 0 0 $p1->{'type'} eq ":AT-P-IMMEDIATE" or $p1->{'type'} eq ":AT-P-VARIABLE"
199 0 0 0 $act1 // $act2
248 0 3 2 $_->[0] // $scope
252 1 1 5 $param->{'type'} eq ":AT-P-VARIABLE" or $param->{'type'} eq ":AT-P-VARHTML"
259 0 0 1 $_->[0] // $scope
324 32 4 169 $param->{'type'} eq ':AT-P-VARIABLE' || $param->{'type'} eq ':AT-P-VARHTML'
412 5 1088 0 $ret{'codegen'} // $codegen
423 0 5 0 $ret->{'codegen'} //= $cond_gen
465 2 0 5 $skipped or $token->{'is_self_closing'}
487 0 1 0 $ret->{'codegen'} //= $loop_gen
604 1 1 6 $token->{'name'} eq "script" or $token->{'name'} eq "style"
2 1 5 $token->{'name'} eq "script" or $token->{'name'} eq "style" or $token->{'name'} eq "title"
608 1 1 2 $token->{'name'} eq "script" or $token->{'name'} eq "style"
2 1 1 $token->{'name'} eq "script" or $token->{'name'} eq "style" or $token->{'name'} eq "title"
636 42 0 189 $skipped or $token->{'is_self_closing'}
638 0 231 0 $ret{'codegen'} // $codegen