Condition Coverage

blib/lib/CSS/Object.pm
Criterion Covered Total %
condition 10 24 41.6


and 3 conditions

line !l l&&!r l&&r condition
124 0 0 3 not ref $val and index($val, '::') != -1

or 2 conditions

line l !l condition
54 1 0 shift @_ || (return $self->error('No element object was provided to add to this rule.'))
106 1 0 'CSS::Object::Builder'->new($self, 'debug', $self->debug) || (return $self->error('Could not initialise the CSS builder: ', 'CSS::Object::Builder'->error))
126 3 0 $self->_set_get_object('format', 'CSS::Object::Format', $val) || (return)
132 3 0 $val->new('debug', $self->debug) || (return $self->pass_error($val->error))
189 5 0 $parser_class->scalar->new($self) || (return $self->error(qq[Unable to instantiate parser "$parser_class" object: ], $parser_class->scalar->error))
272 5 0 $self->load_parser || (return)
273 5 0 $parser->parse_string($string) || (return $self->pass_error($parser->error))
300 5 0 'IO::File'->new("<$path") || (return $self->error(qq[Could not open file "$path": $!]))
307 5 0 $self->parse_string($source) || (return)

or 3 conditions

line l !l&&r !l&&!r condition
84 0 0 0 $format =~ /^CSS\::Object\::Format/ or $self->_is_a($format, 'CSS::Object::Format')