Condition Coverage

blib/lib/RDF/Trine/Parser/RDFXML.pm
Criterion Covered Total %
condition 35 58 60.3


and 2 conditions

line l !l condition
173 0 132 $nodes and scalar @$nodes
224 0 130 $nodes and scalar @$nodes

and 3 conditions

line !l l&&!r l&&r condition
116 136 0 0 &blessed($uri) and $uri->isa('RDF::Trine::Node::Resource')
178 0 132 0 $expect and scalar @$expect > 2
229 0 130 0 $expect and scalar @$expect > 2
323 545 2 260 $self->{'depth'} == 1 and $el->{'NamespaceURI'} eq 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
547 0 260 $self->{'depth'} == 1 and $el->{'NamespaceURI'} eq 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' and $el->{'LocalName'} eq 'RDF'
340 2 2 4 defined $self->{'characters'} and length(my $string = $self->{'characters'})
516 0 24 18 $expect == 8 and $self->{'literal_depth'} == $self->{'depth'}
612 1073 10 106 $expect == 4 and $self->{'chars_ok'}
675 0 0 0 $o->isa('RDF::Trine::Node::Literal') and $o->has_datatype
769 0 286 0 &blessed($base) && $base->isa('URI')

or 3 conditions

line l !l&&r !l&&!r condition
83 0 263 0 ref $class || $class
333 280 8 259 $expect == 1 or $expect == 4
359 2 2 0 $self->{'collection_head'}[0] ||= $list
516 193 0 42 $expect == 4 or $expect == 8 and $self->{'literal_depth'} == $self->{'depth'}
564 2 0 0 $self->{'collection_head'}[0] || $RDF::Trine::Parser::RDFXML::SAXHandler::rdf->nil
612 52 1116 73 $expect == 8 or $expect == 4 and $self->{'chars_ok'}
622 367 122 0 shift() || $self->new_bnode
885 8 10 0 $self->{'named_bnodes'}{$name} ||= $self->new_bnode