Branch Coverage

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


line true false branch
72 7 4 $value ? :
11 56 if defined $value
85 29 44 if (defined $value and not ref $value)
92 13 60 if ($$self{"_" . $field})
104 21 31 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 73 if ($key eq 'content') { }
212 0 84 if not $key or $value eq ""
214 41 43 $compress eq 'pretty' ? :
237 19 25 $compress eq 'pretty' ? :
19 25 $compress eq 'pretty' ? :
240 0 44 unless $selector or $declaration
261 0 0 $compress eq 'pretty' ? :
281 0 3 $compress eq 'pretty' ? :
0 3 $compress eq 'pretty' ? :
303 25 0 if (ref $_[0] and ref $_[0] eq 'CSS::Packer') { }
309 0 0 unless ref $_[0]
317 0 25 if (ref $input ne "SCALAR")
325 0 25 if (defined wantarray) { }
326 0 0 ref $input ? :
332 25 0 ref $input ? :
335 22 3 if (ref $opts eq "HASH")
337 7 37 if defined $opts->{$field}
341 16 28 if defined $opts->{$field}
344 2 20 $opts->{'indent'} && (!$opts->{'compress'} || $opts->{'compress'} eq 'pretty') ? :
356 4 21 if (${$css;} =~ /$COPYRIGHT_COMMENT/ism)
362 2 23 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 21 2 unless ($self->remove_copyright)
379 0 23 if $cont eq "scalar"