| line |
true |
false |
branch |
|
146
|
83 |
5 |
$value ? : |
|
|
88 |
387 |
if defined $value |
|
166
|
35 |
59 |
if (defined $value) |
|
167
|
32 |
3 |
if (grep(($value eq $_), @JAVASCRIPT_OPTS)) { } |
|
|
1 |
2 |
elsif (not $value) { } |
|
181
|
13 |
58 |
if (defined $value) |
|
182
|
10 |
3 |
if (grep(($value eq $_), @CSS_OPTS)) { } |
|
|
1 |
2 |
elsif (not $value) { } |
|
196
|
7 |
50 |
if (defined $value) |
|
197
|
5 |
2 |
if (grep(($value eq $_), @CSP_OPTS)) { } |
|
|
1 |
1 |
elsif (not $value) { } |
|
256
|
5 |
0 |
$_[0]{'submatches'}[0] =~ /\n/s || $_[0]{'submatches'}[2] =~ /\n/s ? : |
|
|
28 |
5 |
$remove_newlines ? : |
|
|
33 |
3 |
$remove_comments ? : |
|
262
|
2 |
1 |
!$remove_newlines && $_[0]{'submatches'}[0] =~ /\n/s ? : |
|
|
1 |
2 |
!$remove_newlines && $_[0]{'submatches'}[2] =~ /\n/s ? : |
|
|
33 |
3 |
$remove_comments ? : |
|
276
|
60 |
0 |
if ($content) { } |
|
277
|
9 |
51 |
$html5 ? : |
|
278
|
9 |
51 |
$html5 ? : |
|
281
|
36 |
24 |
if ($opening =~ /$opening_script_re/i and $opening =~ /$js_type_re/i || !($opening =~ /type/i)) { } |
|
|
16 |
8 |
elsif ($opening =~ /$opening_style_re/i) { } |
|
285
|
3 |
33 |
if $html5 |
|
287
|
27 |
9 |
if ($js_packer and $do_javascript) |
|
290
|
25 |
2 |
unless ($html5) |
|
295
|
9 |
27 |
if ($do_csp) |
|
301
|
6 |
10 |
if $html5 |
|
303
|
7 |
9 |
if ($css_packer and $do_stylesheet) |
|
305
|
2 |
5 |
if $do_stylesheet eq "pretty" |
|
308
|
9 |
7 |
if ($do_csp) |
|
323
|
2 |
37 |
$remove_comments_aggressive ? : |
|
354
|
51 |
0 |
if (ref $_[0] and $_[0]->$HTML::Packer::_isa(__PACKAGE__)) { } |
|
360
|
0 |
0 |
unless ref $_[0] |
|
368
|
0 |
51 |
if (ref $input ne "SCALAR") |
|
376
|
10 |
41 |
if (defined wantarray) { } |
|
377
|
10 |
0 |
ref $input ? : |
|
383
|
41 |
0 |
ref $input ? : |
|
386
|
51 |
0 |
if (ref $opts eq "HASH") |
|
388
|
80 |
175 |
if defined $opts->{$field} |
|
391
|
29 |
22 |
if defined $opts->{'do_javascript'} |
|
392
|
8 |
43 |
if defined $opts->{'do_stylesheet'} |
|
393
|
7 |
44 |
if defined $opts->{'do_csp'} |
|
396
|
1 |
50 |
if (not $self->no_compress_comment and ${$html;} =~ /$PACKER_COMMENT/s) |
|
398
|
1 |
0 |
if ($compress eq "_no_compress_") |
|
399
|
0 |
1 |
$cont eq 'scalar' ? : |
|
419
|
1 |
49 |
if $remove_comments_aggressive |
|
423
|
34 |
16 |
if ($self->remove_newlines) |
|
427
|
6 |
44 |
if ($self->html5) |
|
433
|
10 |
40 |
if $cont eq "scalar" |
|
439
|
37 |
14 |
unless ($self->{'_checked_javascript_packer'}) |
|
442
|
37 |
0 |
unless ($@) |
|
457
|
37 |
14 |
unless ($self->{'_checked_css_packer'}) |
|
460
|
37 |
0 |
unless ($@) |
|
475
|
3 |
4 |
unless $do_csp and %csp |