Condition Coverage

blib/lib/HTML/Blitz/CodeGen.pm
Criterion Covered Total %
condition 46 86 53.4


and 3 conditions

line !l l&&!r l&&r condition
31 0 296 0 @_ > 1 and (@_ - 1) % 2
51 0 1 2 $model eq "JSON" and $op->{'type'} eq ":OP-COND"
77 0 1 2 $model eq "JSON" and $op->{'type'} eq ":OP-COND"
220 0 1187 0 @_ > 3 and (@_ - 3) % 2
306 0 0 6 $code->[0]{'type'} eq ":OP-RAW" and $self->{'code'}[-1]{'type'} eq ":OP-RAW"
343 0 235 0 @_ > 1 and (@_ - 1) % 2
412 0 0 3 $type eq "bool" and $$name eq "iter0"
450 240 7 0 @_ > 3 and (@_ - 3) % 2
461 7 240 0 $in_new_scope_env and exists $gen_vars{$scope}

or 2 conditions

line l !l condition
421 7 76 $gen_vars{$scope}{'typeof'} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
47 1 2 9 $op->{'type'} eq ":OP-LOOP" or $op->{'type'} eq ":OP-COND"
76 1 2 9 $op->{'type'} eq ":OP-LOOP" or $op->{'type'} eq ":OP-COND"
282 8 0 1 $op->{'type'} eq ":OP-VAR" or $op->{'type'} eq ":OP-VAR-QQ"
8 0 1 $op->{'type'} eq ":OP-VAR" or $op->{'type'} eq ":OP-VAR-QQ" or $op->{'type'} eq ":OP-VAR-HTML"
0 0 1 $op->{'type'} eq ":OP-VAR" or $op->{'type'} eq ":OP-VAR-QQ" or $op->{'type'} eq ":OP-VAR-HTML" or $op->{'type'} eq ":OP-VAR-SCRIPT"
0 0 1 $op->{'type'} eq ":OP-VAR" or $op->{'type'} eq ":OP-VAR-QQ" or $op->{'type'} eq ":OP-VAR-HTML" or $op->{'type'} eq ":OP-VAR-SCRIPT" or $op->{'type'} eq ":OP-VAR-STYLE"
0 0 1 $op->{'type'} eq ":OP-CALL" or $op->{'type'} eq ":OP-CALL-QQ"
0 0 1 $op->{'type'} eq ":OP-CALL" or $op->{'type'} eq ":OP-CALL-QQ" or $op->{'type'} eq ":OP-MANGLE-ATTR"
0 0 1 $op->{'type'} eq ":OP-CALL" or $op->{'type'} eq ":OP-CALL-QQ" or $op->{'type'} eq ":OP-MANGLE-ATTR" or $op->{'type'} eq ":OP-CALL-SCRIPT"
0 0 1 $op->{'type'} eq ":OP-CALL" or $op->{'type'} eq ":OP-CALL-QQ" or $op->{'type'} eq ":OP-MANGLE-ATTR" or $op->{'type'} eq ":OP-CALL-SCRIPT" or $op->{'type'} eq ":OP-CALL-STYLE"
325 1183 29 0 $perl_esc{$1} // sprintf("\\x{%x}", ord $1)
344 0 235 0 $data_format eq "nested" or $data_format eq "sigil"
352 0 0 1175 $i >= @types or $t lt $types[$i]
390 8 24 0 $gen_vars{$var->[0]}{'html'}{$var->[1]} //= &$mk_varid("", $var)
394 4 10 0 $gen_vars{$var->[0]}{'html_qq'}{$var->[1]} //= &$mk_varid("qq", $var)
397 0 18 0 $gen_vars{$var->[0]}{'script'}{$var->[1]} //= &$mk_varid("script", $var)
400 0 1 0 $gen_vars{$var->[0]}{'style'}{$var->[1]} //= &$mk_varid("style", $var)
403 4 29 0 $gen_vars{$var->[0]}{'func'}{$var->[1]} //= &$mk_varid("fn", $var)
592 46 1 188 $need_err_callable || $need_assert_script || $need_assert_style