Branch Coverage

blib/lib/Catmandu/Importer/RDF.pm
Criterion Covered Total %
branch 58 78 74.3


line true false branch
34 8 0 defined $_[0]->file ? :
43 23 7 $ns // 1 ? :
98 0 52 if ($self->cache)
119 0 3 if $self->triples
120 0 3 if $self->predicate_map
126 3 0 if (defined $stream and defined(my $row = $stream->next)) { }
127 3 0 if (ref $row eq 'RDF::Query::VariableBindings' or ref $row eq 'RDF::Trine::VariableBindings') { }
132 0 4 $self->sparql_result eq 'aref' ? :
133 2 2 if ($val->is_resource) { }
2 0 elsif ($val->is_literal) { }
156 0 38 unless $stream
160 10 28 if ($self->triples) { }
161 8 2 if (my $hashref = &$stream()) { }
177 6 22 if ($self->url)
184 6 30 if ($self->url)
195 18 0 if (ref $_[0] eq 'HASH') { }
198 12 30 ref $_ ? :
202 0 0 ref $_ ? :
210 0 3 unless $self->url
219 2 1 if ($ldf_client->is_fragment_server) { }
232 0 3 unless ($store)
241 0 3 unless ($rdf_query)
248 0 3 unless ($iterator)
260 30 11 if (my $pid = fork) { }
269 111 30 if defined $line
282 5 6 $self->type ? :
290 6 35 $triple->subject->is_blank ? :
293 0 41 $triple->predicate->is_blank ? :
296 3 10 $triple->object->is_blank ? :
28 13 $triple->object->is_literal ? :
302 3 38 if $type eq 'blank'
303 28 13 $triple->object->is_literal ? :
304 28 13 $triple->object->is_literal ? :
310 7 34 if $datatype
311 8 33 if $lang
318 0 0 if ($self->speed and $count % 100 == 0 and my $elapsed = time - $start)
323 3 8 if ($self->url) { }
329 6 0 if (not $self->type and $self->file and not $from_scalar)
333 2 6 if ($from_scalar) { }