Branch Coverage

blib/lib/Crayon.pm
Criterion Covered Total %
branch 60 72 83.3


line true false branch
40 0 2 unless -f $file
41 0 2 unless open my $fh, "<", $file
49 0 1 unless -d $dir
50 0 1 unless opendir my $d, $dir
52 2 2 if $_ =~ /^\./
53 0 2 unless $_ =~ /css$/
66 12 1 $self->{'pretty'} ? :
72 0 0 unless open my $fh, ">", $file
91 0 19 unless $class and $props
113 35 32 if $props =~ /$LINES/
117 25 42 if ($ri > 0)
121 4 63 if $class =~ /^[^\@]+:\s*\$/
132 6 66 if keys %{$globals;}
139 9 41 if keys %{$globals;}
150 2 70 $p =~ /^\s*\@/ ? :
174 10 24 unless $struct->{$class}
176 1 23 if ($class =~ /^\@/) { }
180 23 41 if $class eq $inner
181 10 31 if (match($struct->{$class}, $struct->{$inner}))
198 14 43 if ($struct->{'VARIABLES'})
200 8 6 if $key
203 1 94 if ($s =~ /^\@/) { }
43 51 elsif (ref $struct->{$s}) { }
207 4 26 $s =~ /^\&(.*)/ ? :
30 13 $key ? :
209 4 39 if $scp
221 1 28 if ($key =~ /^\%(.*)/)
233 0 1 unless delete $flat->{'GLOBAL'}
241 0 1 unless keys %{$$flat{$class};}
243 0 4 if (ref $flat->{$class}{$prop}) { }
275 7 5 unless delete $flat->{'GLOBAL'}
282 2 13 unless keys %{$$flat{$class};}
285 2 24 if (ref $flat->{$class}{$prop}) { }
312 8 11 $args ? :
317 0 2 if ($args =~ /$CI/)
330 328 12 if $string