Branch Coverage

blib/lib/RDF/Trine/Model/Dataset.pm
Criterion Covered Total %
branch 39 66 59.0


line true false branch
67 1 5 unless $dataset{'default'}
70 8 0 &blessed($graph) ? :
71 8 0 &blessed($graph) ? :
75 5 1 unless $dataset{'named'}
77 1 0 &blessed($graph) ? :
78 1 0 &blessed($graph) ? :
142 0 0 if ($store)
157 5 17 unless scalar @{$self->{'stack'};}
159 15 2 if ($use_quad) { }
162 14 1 if (&blessed($quad) and $quad->isa('RDF::Trine::Node::Nil')) { }
1 0 elsif (not defined $quad or &blessed($quad) and $quad->isa('RDF::Trine::Node::Variable')) { }
179 0 0 &blessed($quad) ? :
180 0 0 if ($self->{'stack'}[0]{'named'}{$name}) { }
192 0 0 unless $seen{join ' ', map({$_->as_string;} map({$st->$_;} 'subject', 'predicate', 'object'))}++
247 2 14 unless scalar @{$self->{'stack'};}
251 11 3 if ($use_quad) { }
253 1 10 if (&blessed($quad) and not $quad->isa('RDF::Trine::Node::Variable') and not $quad->isa('RDF::Trine::Node::Nil')) { }
254 1 0 if (exists $self->{'stack'}[0]{'named'}{$quad->uri_value}) { }
265 13 18 unless $st
273 5 5 if (not defined $quad or $quad->isa('RDF::Trine::Node::Variable'))
276 0 1 if $g->isa('RDF::Trine::Node::Nil')
283 10 33 unless scalar @iters
285 19 14 if ($st) { }
286 0 19 if ($seen{$st->as_string}++)
311 3 12 unless scalar @iters
313 8 4 if ($st) { }
315 0 8 if $seen{join ' ', map({$_->as_string;} @nodes)}++
334 0 0 unless scalar @{$self->{'stack'};}
336 0 0 if ($use_quad) { }
338 0 0 if (&blessed($quad) and not $quad->isa('RDF::Trine::Node::Variable') and not $quad->isa('RDF::Trine::Node::Nil')) { }
356 0 0 unless scalar @{$self->{'stack'};}
371 0 9 unless scalar @{$self->{'stack'};}
373 0 9 if (wantarray) { }