Branch Coverage

blib/lib/CSS/Object/Format.pm
Criterion Covered Total %
branch 28 60 46.6


line true false branch
52 0 39 unless defined $elem
53 0 39 unless $self->_is_a($elem, 'CSS::Object::Comment')
61 0 22 unless $self->_is_a($fmt, 'CSS::Object::Format')
67 132 0 if $fmt->can($_)
76 0 295 unless defined $elems
77 0 295 unless $self->_is_a($elems, 'Module::Generic::Array')
86 15 202 $_->isa('CSS::Object::Comment') ? :
95 161 756 if (@_)
108 0 17 unless defined $keyf
109 0 17 unless $self->_is_a($keyf, 'CSS::Object::Rule::Keyframes')
116 17 0 $self->open_brace_on_new_line ? :
17 0 $self->open_brace_and_new_line ? :
17 0 $self->close_brace_on_new_line ? :
130 0 0 unless defined $properties
131 0 0 unless $self->_is_a($properties, 'Module::Generic::Array')
140 0 202 unless defined $prop
141 0 202 unless $self->_is_a($prop, 'CSS::Object::Property')
152 0 18 unless $self->_is_hash($this)
167 0 292 unless defined $rule
168 0 0 overload::Overloaded($rule) ? :
0 292 unless $self->_is_a($rule, 'CSS::Object::Rule')
174 292 0 $self->open_brace_on_new_line ? :
292 0 $self->open_brace_and_new_line ? :
292 0 $self->close_brace_on_new_line ? :
193 0 210 unless $self->_is_a($val, 'CSS::Object::Value')
194 0 210 unless $self->_is_a($val, 'CSS::Object::Value')
199 8 202 $val->comment_before->length > 0 ? :
0 210 $val->comment_after->length > 0 ? :
206 0 0 unless defined $values
207 0 0 unless $self->_is_a($values, 'Module::Generic::Array')