Branch Coverage

blib/lib/ODO/Parser/XML/Slow.pm
Criterion Covered Total %
branch 1 186 0.5


line true false branch
81 0 0 if ref $rdf eq 'GLOB'
86 0 0 if $@
88 0 0 scalar @{$handler->statements;} >= 0 ? :
89 0 0 scalar @{$handler->owl_imports;} >= 0 ? :
129 0 0 unless exists $$config{'uri'}
132 0 0 unless exists $$config{'qname'}
210 0 4 if ($self->base_uri)
223 0 0 unless (UNIVERSAL::isa($s, 'ODO::Node') and UNIVERSAL::isa($p, 'ODO::Node') and UNIVERSAL::isa($o, 'ODO::Node'))
229 0 0 unless $s
232 0 0 unless $p
235 0 0 unless $o
241 0 0 unless UNIVERSAL::isa($statement, 'ODO::Statement')
253 0 0 if $uri eq "$rdfNS$name"
267 0 0 if $uri eq "$rdfNS$name"
278 0 0 if ($$attributes{rdf()->uri('ID')} and $$attributes{rdf()->uri('nodeID')}) { }
0 0 elsif ($$attributes{rdf()->uri('about')} and $$attributes{rdf()->uri('nodeID')}) { }
0 0 elsif ($$attributes{rdf()->uri('nodeID')} and $$attributes{rdf()->uri('resource')}) { }
295 0 0 if (exists $$attributes{rdf()->uri('about')} and exists $$attributes{rdf()->uri('nodeID')}) { }
0 0 elsif (exists $$attributes{rdf()->uri('nodeID')} and exists $$attributes{rdf()->uri('resource')}) { }
0 0 elsif (exists $$attributes{rdf()->uri('parseType')} and $$attributes{rdf()->uri('parseType')} eq 'Literal' and exists $$attributes{rdf()->uri('resource')}) { }
0 0 elsif (exists $$attributes{rdf()->uri('parseType')} and $$attributes{rdf()->uri('parseType')} eq 'Literal') { }
316 0 0 if $attr eq rdf()->uri('parseType') or $attr =~ /^ $xml_uri/
325 0 0 if $attr =~ /^.*(parsetype|Parsetype|ParseType)$/
339 0 0 unless ($nodeID and exists $self->blank_nodes->{$nodeID})
341 0 0 unless ($nodeID)
348 0 0 if $self->blank_node_uri_prefix
381 0 0 if (scalar @{$self->stack;} > 0)
396 0 0 if ($element->uri eq rdf()->uri('RDF')) { }
0 0 elsif ($element->uri eq owl()->uri('Ontology')) { }
0 0 elsif ($element->uri eq owl()->uri('imports') and scalar @{$self->gatherOwlImports;} > 0) { }
398 0 0 if ($baseURI)
402 0 0 unless $baseURI =~ m[/$]
407 0 0 if (scalar @{$self->gatherOwlImports;} >= 1)
409 0 0 unless defined $import and $import ne ''
410 0 0 if defined $import and $import ne ''
415 0 0 if defined $import and $import ne ''
430 0 0 if $$chars{'Data'} eq ''
442 0 0 if ($element->uri eq owl()->uri('Ontology'))
446 0 0 if (scalar @{$self->stack;} > 0) { }
467 0 0 unless ($element->uri eq rdf()->uri('RDF'))
469 0 0 if ($c->uri eq rdf()->uri('RDF'))
480 0 0 unless $rdf_root_element
486 0 0 unless scalar @{$element->children;} > 0
490 0 0 if exists $rdf_root_element->attributes->{xml()->uri('base')}
505 0 0 if ($@)
526 0 0 if $e->uri ne rdf()->uri('type') and $self->is_reserved_uri($e->uri)
531 0 0 if exists $e->attributes->{xml()->uri('base')}
541 0 0 if ($e->attributes->{rdf()->uri('ID')}) { }
0 0 elsif ($e->attributes->{rdf()->uri('nodeID')}) { }
0 0 elsif ($e->attributes->{rdf()->uri('about')}) { }
0 0 elsif (not $e->subject) { }
545 0 0 if !$e->attributes->{rdf()->uri('ID')} =~ /$XML::RegExp::NCName/
549 0 0 if ($idURI =~ m[.*://]) { }
552 0 0 if $idURI
553 0 0 if $baseURI =~ /#$/ or $baseURI =~ m[/$]
554 0 0 unless $baseURI =~ /#$/ or $baseURI =~ m[/$]
559 0 0 if exists $self->seen_id->{$s->value}
568 0 0 if !$e->attributes->{rdf()->uri('nodeID')} =~ /$XML::RegExp::NCName/
580 0 0 if ($aboutUri =~ m[.*://]) { }
584 0 0 if ($baseURI)
586 0 0 unless $baseURI =~ m[/$]
606 0 0 if ($e->uri ne rdf()->uri('Description'))
615 0 0 if ($e->attributes->{rdf()->uri('type')})
626 0 0 unless ($self->is_reserved_uri($k))
644 0 0 if ($baseURI)
671 0 0 if ($e->uri eq rdf()->uri('li'))
677 0 0 if $self->is_forbidden_property($e->uri)
684 0 0 if (scalar @{$e->children;} == 1 and not exists $e->attributes->{rdf()->uri('parseType')}) { }
0 0 elsif (scalar @{$e->children;} == 0 and defined $e->text) { }
0 0 elsif (my $ptype = $e->attributes->{rdf()->uri('parseType')}) { }
0 0 elsif (not defined $e->text) { }
691 0 0 if ($ptype eq 'Resource') { }
0 0 elsif ($ptype eq 'Collection') { }
732 0 0 if $e->parent
736 0 0 if ($e->attributes->{rdf()->uri('ID')})
772 0 0 unless ($e->parent)
779 0 0 if ($e->attributes->{rdf()->uri('ID')})
816 0 0 if ($e->attributes->{rdf()->uri('ID')})
850 0 0 if ($e->attributes->{rdf()->uri('ID')})
919 0 0 if (scalar @s > 0) { }
954 0 0 if (exists $e->attributes->{rdf()->uri('ID')})
988 0 0 if (exists $e->attributes->{rdf()->uri('ID')} and values %{$e->attributes;} == 1) { }
989 0 0 if !$e->attributes->{rdf()->uri('ID')} =~ /$XML::RegExp::NCName/
1004 0 0 if ($e->attributes->{rdf()->uri('resource')}) { }
0 0 elsif ($e->attributes->{rdf()->uri('nodeID')}) { }
1009 0 0 $baseURI ? :
1015 0 0 unless $resource->uri
1019 0 0 if !$e->attributes->{rdf()->uri('nodeID')} =~ /$XML::RegExp::NCName/
1035 0 0 if $self->is_reserved_uri($attr)
1039 0 0 if ($attr eq rdf()->uri('type')) { }
1042 0 0 $baseURI ? :
1048 0 0 unless $o->uri
1074 0 0 if ($e->attributes->{rdf()->uri('ID')})