| blib/lib/HTML/Blitz.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 34 | 54 | 62.9 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 51 | 17 | 227 | 7 | @rules and ref $rules[0] eq "HASH" |
| 149 | 0 | 606 | 0 | @_ > 1 and (@_ - 1) % 2 |
| 150 | 315 | 131 | 160 | $allow_tag_name and $$src_ref =~ /\G(\*|$ident)/cgu |
| 181 | 27 | 3 | 1 | $op eq "~" and $value eq '' || $value =~ /$ws/u |
| 8 | 19 | 3 | $op =~ /\A[\^\$*]\z/u and $value eq "" | |
| 332 | 0 | 0 | 0 | builtin::blessed($val) and overload::Method($val, "&{}") |
| 337 | 0 | 0 | 7 | builtin::blessed($val) and $val->isa("HTML::Blitz::Template") |
| 694 | 0 | 0 | 0 | $type eq 'seperator' && $custom_action->{'separator'} |
| 698 | 250 | 6 | 0 | @_ > 1 and (@_ - 1) % 2 |
| line | l | !l | condition |
|---|---|---|---|
| 279 | 33 | 0 | $1 // " " |
| 380 | 2 | 28 | $value // "" |
| 396 | 4 | 2 | $value // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 83 | 14 | 16 | 0 | $2 // do { my $n = hex $1; $n > 1114111 ? "\x{fffd}" : chr $n } |
| 107 | 6 | 0 | 0 | $2 // do { my $n = hex $1; $n > 1114111 ? "\x{fffd}" : chr $n } |
| 181 | 0 | 1 | 3 | $value eq '' || $value =~ /$ws/u |
| 1 | 6 | 24 | $op eq "~" and $value eq '' || $value =~ /$ws/u or $op =~ /\A[\^\$*]\z/u and $value eq "" | |
| 214 | 0 | 2 | 9 | $num1 eq "+" or $num1 eq "" |
| 694 | 2 | 257 | 0 | $custom_action->{$type} // $actions{$type} |
| 257 | 0 | 0 | ($custom_action->{$type} // $actions{$type}) // &$throw("Unknown action type '${type}'" . ($type eq 'seperator' && $custom_action->{'separator'} ? " (did you mean 'separator'?)" : "")) |