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
120 0 0 3 not ref $val and index($val, "::") != -1

or 2 conditions

line l !l condition
55 1 0 shift @_ || (return $self->error('No element object was provided to add to this rule.'))
102 1 0 'CSS::Object::Builder'->new($self, 'debug', $self->debug) || (return $self->error('Could not initialise the CSS builder: ', 'CSS::Object::Builder'->error))
122 3 0 $self->_set_get_object('format', 'CSS::Object::Format', $val) || (return $self->pass_error)
128 3 0 $val->new('debug', $self->debug) || (return $self->pass_error($val->error))
182 5 0 $parser_class->scalar->new($self) || (return $self->error(qq[Unable to instantiate parser "$parser_class" object: ], $parser_class->scalar->error))
261 5 0 $self->load_parser || (return $self->pass_error)
262 5 0 $parser->parse_string($string) || (return $self->pass_error($parser->error))
285 5 0 'IO::File'->new("<$path") || (return $self->error(qq[Could not open file "$path": $!]))
291 5 0 $self->parse_string($source) || (return $self->pass_error)
318 0 0 $self->parse_string($data) || (return $self->pass_error)

or 3 conditions

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