Branch Coverage

lib/CSS/Simple.pm
Criterion Covered Total %
branch 25 38 65.7


line true false branch
54 8 232 if defined $value
89 1 9 defined $$params{'warns_as_errors'} && $$params{'warns_as_errors'} ? :
1 9 defined $$params{'browser_specific_properties'} && $$params{'browser_specific_properties'} ? :
124 0 0 unless ($params and $$params{'filename'})
128 0 0 unless open FILE, '<', $$params{'filename'}
164 0 8 unless (exists $$params{'css'})
168 8 0 if ($params and $$params{'css'}) { }
177 0 30 unless (/^\s*([^{]+?)\s*\{(.*)\}\s*$/)
193 12 39 if (not $self->_browser_specific_properties and /^\s*[*-_]/ || /\\/)
198 3 44 unless (/^\s*([\w._-]+)\s*:\s*(.*?)\s*$/)
212 3 27 if ($self->check_selector({'selector', $selector})) { }
252 0 0 unless (exists $$params{'filename'})
257 0 0 unless open CSS, '>' . $$params{'filename'}
284 23 5 if (keys %{$properties;})
408 2 0 if ($self->check_selector({'selector', $$params{'selector'}})) { }
448 2 39 if ($self->check_selector({'selector', $$params{'selector'}})) { }
485 1 3 if ($self->check_selector({'selector', $$params{'selector'}})) { }
564 0 423 unless ($self and ref $self)
576 1 2 if ($$self{'warns_as_errors'}) { }