Branch Coverage

blib/lib/CSS/Object/Rule.pm
Criterion Covered Total %
branch 16 36 44.4


line true false branch
43 0 5 unless $self->_is_a($elem, "CSS::Object::Element")
56 0 40 unless $self->_is_a($prop, "CSS::Object::Property")
69 0 47 unless $self->_is_a($sel, "CSS::Object::Selector")
83 0 9 unless $self->_is_a($css, "CSS::Object")
84 0 9 unless defined $css->add_rule($self)
101 1 3 $_->isa('CSS::Object::Comment') ? :
115 29 1396 if (@_)
123 0 0 unless (shift())->format($format)
127 0 0 unless (shift())->format($format)
144 0 4 unless $elem->isa("CSS::Object::Property")
146 1 3 if ($elem->name eq $prop_name)
151 0 1 if (Want::want('OBJECT')) { }
0 1 elsif (Want::want('LIST')) { }
153 0 0 $arr->length > 0 ? :
157 0 0 $arr->length > 0 ? :
170 8 2 $self->_is_a($_, 'CSS::Object::Property') ? :
186 0 0 unless $self->_is_a($css, "CSS::Object")
195 0 0 unless $self->_is_a($prop, "CSS::Object::Property")