Condition Coverage

blib/lib/CSS/Object.pm
Criterion Covered Total %
condition 10 26 38.4


and 3 conditions

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

or 2 conditions

line l !l condition
57 1 0 shift @_ || (return $self->error('No element object was provided to add to this rule.'))
109 1 0 'CSS::Object::Builder'->new($self, 'debug', $self->debug) || (return $self->error('Could not initialise the CSS builder: ', 'CSS::Object::Builder'->error))
129 3 0 $self->_set_get_object('format', 'CSS::Object::Format', $val) || (return $self->pass_error)
135 3 0 $val->new('debug', $self->debug) || (return $self->pass_error($val->error))
193 5 0 $parser_class->scalar->new($self) || (return $self->error(qq[Unable to instantiate parser "$parser_class" object: ], $parser_class->scalar->error))
276 5 0 $self->load_parser || (return $self->pass_error)
277 5 0 $parser->parse_string($string) || (return $self->pass_error($parser->error))
304 5 0 'IO::File'->new("<$path") || (return $self->error(qq[Could not open file "$path": $!]))
311 5 0 $self->parse_string($source) || (return $self->pass_error)
339 0 0 $self->parse_string($data) || (return $self->pass_error)

or 3 conditions

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