Branch Coverage

blib/lib/RDF/Trine/Iterator.pm
Criterion Covered Total %
branch 39 64 60.9


line true false branch
85 1002 5235 if (ref $stream and ref $stream eq 'ARRAY')
157 0 4 if (ref $format and $format->isa('RDF::Redland::URI'))
161 0 4 if ($format eq 'http://www.w3.org/2001/sw/DataAccess/json-sparql/') { }
191 3 0 unless (ref $string)
226 19 17205 if $self->{'_finished'}
228 13 17192 if (scalar @{$self->{'_peek'};})
234 6162 11030 unless (defined $value)
240 11030 6162 if defined $value
253 0 17 if $self->{'_finished'}
267 6 0 if ($self->open) { }
286 6 3 if defined $v
332 14 15 unless (defined $data)
403 0 6 if (not defined $node) { }
2 4 elsif ($node->is_resource) { }
4 0 elsif ($node->isa('RDF::Trine::Node::Literal')) { }
0 0 elsif ($node->isa('RDF::Trine::Node::Blank')) { }
416 0 4 if ($node->has_language) { }
0 4 elsif ($node->has_datatype) { }
525 0 135 unless $open
527 30 105 unless ($data)
534 59 46 if ($bool) { }
536 0 0 if (@_ and $_[0])
547 0 32 unless &blessed($stream)
548 0 32 unless $stream->can('_new')
562 1 0 unless scalar @_
564 0 0 if (defined $new)
572 0 4 unless $open
573 0 0 if (@_ and $_[0])
578 1 3 unless ($data)
603 0 2 unless $open
604 0 0 if (@_ and $_[0])
609 1 1 unless ($data)