Condition Coverage

blib/lib/HTML/Packer.pm
Criterion Covered Total %
condition 24 33 72.7


and 3 conditions

line !l l&&!r l&&r condition
262 1 0 2 !$remove_newlines && $_[0]{'submatches'}[0] =~ /\n/s
1 1 1 !$remove_newlines && $_[0]{'submatches'}[2] =~ /\n/s
281 24 0 36 $opening =~ /$opening_script_re/i and $opening =~ /$js_type_re/i || !($opening =~ /type/i)
287 0 9 27 $js_packer and $do_javascript
303 0 9 7 $css_packer and $do_stylesheet
354 0 0 51 ref $_[0] and $_[0]->$HTML::Packer::_isa(__PACKAGE__)
396 2 48 1 not $self->no_compress_comment and ${$html;} =~ /$PACKER_COMMENT/s
475 2 1 4 $do_csp and %csp

or 3 conditions

line l !l&&r !l&&!r condition
256 5 0 0 $_[0]{'submatches'}[0] =~ /\n/s || $_[0]{'submatches'}[2] =~ /\n/s
281 35 1 0 $opening =~ /$js_type_re/i || !($opening =~ /type/i)
404 34 1 15 $self->remove_comments || $self->remove_comments_aggressive