Branch Coverage

blib/lib/RDF/Trine/Serializer/TriG.pm
Criterion Covered Total %
branch 17 46 36.9


line true false branch
74 2 3 if (@_)
75 0 2 if (scalar @_ == 1 and &reftype($_[0]) eq 'HASH') { }
79 0 2 if (exists $args{'base'})
82 0 2 if (exists $args{'base_uri'})
85 2 0 if (exists $args{'namespaces'})
93 0 2 if (&blessed($uri))
95 0 0 if (&blessed($uri))
125 0 0 if (@nskeys)
135 0 0 if ($count)
186 2 3 if (@nskeys)
198 7 0 $st->isa('RDF::Trine::Statement::Quad') ? :
199 5 2 if (not $in_graph) { }
1 1 elsif (not $g->equal($new_graph)) { }
201 4 1 if ($g->is_nil) { }
215 5 0 if ($in_graph)
264 0 0 if ($obj->is_literal and $obj->has_datatype) { }
0 0 elsif ($obj->isa('RDF::Trine::Node::Resource')) { }
266 0 0 if ($dt =~ m[^http://www.w3.org/2001/XMLSchema#(integer|double|decimal)$] and $obj->is_canonical_lexical_form) { }
275 0 0 if (&blessed($self) and exists $self->{'ns'}{$ns})
280 0 0 if ($qname)
289 0 0 if (&blessed($self) and exists $self->{'ns'}{$ns})
294 0 0 if ($value)
311 0 0 if (defined $str) { }