blib/lib/HTML/Packer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 33 | 72.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
261 | 1 | 0 | 2 | !$remove_newlines && $_[0]{'submatches'}[0] =~ /\n/s |
1 | 1 | 1 | !$remove_newlines && $_[0]{'submatches'}[2] =~ /\n/s | |
280 | 19 | 0 | 26 | $opening =~ /$opening_script_re/i and $opening =~ /$js_type_re/i || !($opening =~ /type/i) |
286 | 0 | 9 | 17 | $js_packer and $do_javascript |
302 | 0 | 9 | 2 | $css_packer and $do_stylesheet |
353 | 0 | 0 | 41 | ref $_[0] and $_[0]->isa('HTML::Packer') |
395 | 2 | 38 | 1 | not $self->no_compress_comment and ${$html;} =~ /$PACKER_COMMENT/s |
474 | 2 | 1 | 4 | $do_csp and %csp |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
255 | 5 | 0 | 0 | $_[0]{'submatches'}[0] =~ /\n/s || $_[0]{'submatches'}[2] =~ /\n/s |
280 | 25 | 1 | 0 | $opening =~ /$js_type_re/i || !($opening =~ /type/i) |
403 | 29 | 1 | 10 | $self->remove_comments || $self->remove_comments_aggressive |