Branch Coverage

blib/lib/RDF/Trine/Serializer/RDFXML.pm
Criterion Covered Total %
branch 43 54 79.6


line true false branch
71 4 18 if (my $ns = $args{'namespaces'})
73 1 3 if (&blessed($ns) and $ns->isa('RDF::Trine::NamespaceMap')) { }
84 0 14 if &blessed($uri)
91 0 22 if ($args{'base'})
94 1 21 if ($args{'base_uri'})
97 1 21 if ($args{'scoped_namespaces'})
145 1 19 if ($self->{'base_uri'})
152 18 2 if &blessed($st)
159 22 6 if ($row->subject->equal($subj)) { }
179 10 14 if ($s->isa('RDF::Trine::Node::Blank')) { }
206 17 27 unless (exists $namespaces{$ns})
211 3 41 if ($self->{'scoped_namespaces'})
214 24 20 if ($o->isa('RDF::Trine::Node::Literal')) { }
6 14 elsif ($o->isa('RDF::Trine::Node::Blank')) { }
225 9 15 if ($lang) { }
1 14 elsif ($dt) { }
258 1 17 $ns eq '' ? :
262 17 5 if ($ns) { }
283 0 0 if ($self->{'base_uri'})
297 0 0 if $$seen{$node->sse}++
305 0 0 if (@bindings)
307 0 0 if &blessed($_)
320 1 19 if $self->{'scoped_namespaces'}
324 19 6 if $v eq 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
326 0 6 if (&blessed($v))
329 1 5 $k eq '' ? :
333 3 16 if (length $ns)