Branch Coverage

blib/lib/CSS/Object/Rule.pm
Criterion Covered Total %
branch 16 32 50.0


line true false branch
40 0 5 unless $self->_is_a($elem, 'CSS::Object::Element')
53 0 40 unless $self->_is_a($prop, 'CSS::Object::Property')
66 0 47 unless $self->_is_a($sel, 'CSS::Object::Selector')
80 0 9 unless $self->_is_a($css, 'CSS::Object')
81 0 9 unless defined $css->add_rule($self)
98 1 3 $_->isa('CSS::Object::Comment') ? :
112 29 1250 if (@_)
120 0 0 unless (shift())->format($format)
124 0 0 unless (shift())->format($format)
141 0 4 unless $elem->isa('CSS::Object::Property')
143 1 3 if ($elem->name eq $prop_name)
148 0 1 if (Want::want('OBJECT')) { }
0 1 elsif (Want::want('LIST')) { }
150 0 0 $arr->length > 0 ? :
154 0 0 $arr->length > 0 ? :
167 8 2 $_->isa('CSS::Object::Property') ? :