Branch Coverage

blib/lib/CSS/Packer.pm
Criterion Covered Total %
branch 49 68 72.0


line true false branch
72 6 3 $value ? :
9 52 if defined $value
85 27 42 if (defined $value and not ref $value)
92 10 59 if ($$self{'_' . $field})
104 21 29 if (defined $value)
105 20 1 if (grep(($value eq $_), @COMPRESS)) { }
0 1 elsif (not $value) { }
186 0 5 $mediatype ? :
2 3 $compress eq 'pretty' ? :
204 11 67 if ($key eq 'content') { }
212 0 78 if not $key or $value eq ''
214 35 43 $compress eq 'pretty' ? :
237 17 25 $compress eq 'pretty' ? :
17 25 $compress eq 'pretty' ? :
240 0 42 unless $selector or $declaration
261 0 0 $compress eq 'pretty' ? :
281 0 3 $compress eq 'pretty' ? :
0 3 $compress eq 'pretty' ? :
303 23 0 if (ref $_[0] and ref $_[0] eq 'CSS::Packer') { }
309 0 0 unless ref $_[0]
317 0 23 if (ref $input ne 'SCALAR')
325 0 23 if (defined wantarray) { }
326 0 0 ref $input ? :
332 23 0 ref $input ? :
335 20 3 if (ref $opts eq 'HASH')
337 5 35 if defined $opts->{$field}
341 16 24 if defined $opts->{$field}
344 2 18 $opts->{'indent'} && (!$opts->{'compress'} || $opts->{'compress'} eq 'pretty') ? :
356 2 21 if (${$css;} =~ /$COPYRIGHT_COMMENT/ism)
362 2 21 if (not $self->no_compress_comment and ${$css;} =~ /$PACKER_COMMENT/)
364 2 0 if ($compress eq '_no_compress_')
365 0 2 $cont eq 'scalar' ? :
375 20 1 unless ($self->remove_copyright)
379 0 21 if $cont eq 'scalar'