Branch Coverage

blib/lib/CSS/Tiny.pm
Criterion Covered Total %
branch 15 24 62.5


line true false branch
146 0 3 unless my $file = shift @_
147 0 3 unless -e $file
148 0 3 unless -f _
149 0 3 unless -r _
153 0 3 unless open CSS, $file
180 0 16 unless (/^\s*([^{]+?)\s*\{(.*)\}\s*$/)
192 0 22 unless (/^\s*([\w._-]+)\s*:\s*(.*?)\s*$/)
211 1 2 if $@
237 0 1 unless my $file = shift @_
240 0 1 unless open CSS, '>' . $file
284 1 1 unless my $css = $_[0]->write_string
298 1 1 unless my $css = $_[0]->write_string