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
69 0 0 1 $p1->{'type'} eq ":AT-P-VARIABLE" and $p2->{'type'} eq ":AT-P-VARIABLE"
75 0 0 4 $t1->{'type'} eq ":AT-P-TRANSFORM" and $t2->{'type'} eq ":AT-P-TRANSFORM"
163 0 0 0 $aa1->{'type'} eq ":AT-A-MODIFY-ATTR" and $aa2->{'type'} eq ":AT-A-MODIFY-ATTR"
186 0 0 64 $asa1->{'type'} eq ":AT-AS-MODIFY-ATTRS" and $asa2->{'type'} eq ":AT-AS-MODIFY-ATTRS"
197 0 0 0 defined $act1 && defined $act2
227 0 0 79 $act1->{'type'} eq ":AT-REPLACE-INNER" and $act2->{'type'} eq ":AT-REPLACE-INNER"
246 5 0 0 $action->{'else'} && _bind_scope($scope, $action->{'else'})
284 9 0 3 $value->{'type'} eq ":AT-P-VARIABLE" and not defined $value->{'value'}[0]
299 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'}}
322 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'};}
358 194 49 0 @_ > 2 and (@_ - 2) % 2
363 192 0 49 $collect_content and $token->{'type'} eq ":TT-TEXT"
414 1183 358 5 defined $action and $action->{'type'} eq ":AT-REMOVE-IF"
432 1052 132 3 $token->{'is_self_closing'} && !$token->{'is_void'}
549 64 268 1 $param->{'pristine'} and $param->{'value'} =~ /$self->{'dummy_marker_re'}/u

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
89 0 0 2 $p2->{'type'} eq ":AT-P-FRAGMENT" or $p2->{'type'} eq ":AT-P-TRANSFORM"
92 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"
101 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"
107 0 0 0 $p2->{'type'} eq ":AT-P-VARHTML" or $p2->{'type'} eq ":AT-P-TRANSFORM"
110 0 0 0 $p2->{'type'} eq ":AT-P-IMMEDIATE" or $p2->{'type'} eq ":AT-P-VARIABLE"
118 0 0 0 $p1->{'type'} eq ":AT-P-IMMEDIATE" or $p1->{'type'} eq ":AT-P-VARIABLE"
127 1 0 0 $p2->{'type'} eq ":AT-P-IMMEDIATE" or $p2->{'type'} eq ":AT-P-VARIABLE"
133 0 0 0 $p1->{'type'} eq ":AT-P-IMMEDIATE" or $p1->{'type'} eq ":AT-P-VARIABLE"
197 0 0 0 $act1 // $act2
246 0 3 2 $_->[0] // $scope
250 1 1 5 $param->{'type'} eq ":AT-P-VARIABLE" or $param->{'type'} eq ":AT-P-VARHTML"
257 0 0 1 $_->[0] // $scope
322 32 4 169 $param->{'type'} eq ':AT-P-VARIABLE' || $param->{'type'} eq ':AT-P-VARHTML'
410 5 1088 0 $ret{'codegen'} // $codegen
421 0 5 0 $ret->{'codegen'} //= $cond_gen
463 2 0 5 $skipped or $token->{'is_self_closing'}
485 0 1 0 $ret->{'codegen'} //= $loop_gen
602 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"
606 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"
634 42 0 189 $skipped or $token->{'is_self_closing'}
636 0 231 0 $ret{'codegen'} // $codegen