Branch Coverage

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


line true false branch
52 0 47 unless defined $elem
53 0 47 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 331 unless defined $elems
77 0 331 unless $self->_is_a($elems, "Module::Generic::Array")
86 19 260 $_->isa('CSS::Object::Comment') ? :
95 161 912 if (@_)
108 0 19 unless defined $keyf
109 0 19 unless $self->_is_a($keyf, "CSS::Object::Rule::Keyframes")
116 19 0 $self->open_brace_on_new_line ? :
19 0 $self->open_brace_and_new_line ? :
19 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 260 unless defined $prop
141 0 260 unless $self->_is_a($prop, "CSS::Object::Property")
152 0 18 unless $self->_is_hash($this)
167 0 328 unless defined $rule
168 0 0 overload::Overloaded($rule) ? :
0 328 unless $self->_is_a($rule, "CSS::Object::Rule")
174 328 0 $self->open_brace_on_new_line ? :
328 0 $self->open_brace_and_new_line ? :
328 0 $self->close_brace_on_new_line ? :
193 0 268 unless $self->_is_a($val, "CSS::Object::Value")
194 0 268 unless $self->_is_a($val, "CSS::Object::Value")
199 12 256 $val->comment_before->length > 0 ? :
0 268 $val->comment_after->length > 0 ? :
206 0 0 unless defined $values
207 0 0 unless $self->_is_a($values, "Module::Generic::Array")