Branch Coverage

blib/lib/RDF/Trine/Store/Hexastore.pm
Criterion Covered Total %
branch 109 136 80.1


line true false branch
135 0 1 unless $config->{'sources'}
139 0 2 if (my $g = $source->{'graph'})
140 0 0 &blessed($g) ? :
142 0 2 if ($source->{'url'}) { }
2 0 elsif ($source->{'file'}) { }
147 0 2 unless open my $fh, '<:encoding(UTF-8)', $source->{'file'}
209 5 27 ref $args{'orderby'} ? :
211 0 32 if (defined $context and not $context->isa('RDF::Trine::Node::Nil'))
220 38 58 if defined $node and not $node->isa('RDF::Trine::Node::Variable')
221 23 73 if (&blessed($node) and $node->isa('RDF::Trine::Node::Variable'))
229 3 29 if ($defined == 3) { }
8 21 elsif ($defined == 2) { }
13 8 elsif ($defined == 1) { }
232 1 2 if ($self->_page_contains_node($list, $ids[2])) { }
241 16 8 if (defined $nodes[$i] and not $nodes[$i]->isa('RDF::Trine::Node::Variable')) { }
254 8 16 unless scalar @local_list
268 13 26 if (defined $nodes[$i] and not $nodes[$i]->isa('RDF::Trine::Node::Variable')) { }
271 10 16 if (&blessed($nodes[$i]) and $nodes[$i]->isa('RDF::Trine::Node::Variable'))
272 5 5 if (defined $uvar) { }
273 0 5 if ($uvar eq $nodes[$i]->name)
286 3 10 if (@orderby)
287 1 2 if $orderby[1] eq 'DESC'
289 2 1 if ($sortkey ne $ukeys[0])
302 9 21 unless scalar @ukeys1
307 0 21 if ($check_dup)
325 9 15 if (&blessed($nodes[$i]) and $nodes[$i]->isa('RDF::Trine::Node::Variable'))
328 3 6 if (++$dup_counts{$name} > $max)
339 2 6 if (@orderby) { }
340 1 1 if $orderby[1] eq 'DESC'
349 0 8 if ($max > 1)
352 0 0 if (3 == scalar @order_keys) { }
369 8 20 unless scalar @skeys
373 0 20 if ($max >= 2)
382 0 33 if ($max == 3)
410 4 0 if ($bgp->isa('RDF::Trine::Pattern'))
414 3 1 if (2 == scalar @triples) { }
420 1 2 if (@shared) { }
435 1 0 if ($i1current->{$shrkey}->equal($i2current->{$shrkey})) { }
0 0 elsif ($i1current->{$shrkey}->compare($i2current->{$shrkey}) == -1) { }
440 0 4 unless ($i2current = $i2->next)
451 1 0 unless ($i1current = $i1->next)
517 0 4 unless defined $val_a and defined $val_b
519 0 4 unless ($equal)
562 159 171 if ($self->_add_node_to_page($list, $id3))
567 53 2 if ($added)
595 39 39 if ($self->_remove_node_from_page($list, $id3))
603 13 0 if ($removed)
659 1 37 if (scalar @nodes > 3 and defined $nodes[3] and not $nodes[3]->isa('RDF::Trine::Node::Nil'))
664 38 124 if (defined $nodes[$i]) { }
671 29 25 if (0 == scalar @keys) { }
15 10 elsif (2 == scalar @keys) { }
7 3 elsif (4 == scalar @keys) { }
683 2 1 $self->_page_contains_node($list, $keys[5]) ? :
693 20 15 if (1 >= scalar @ukeys) { }
709 168 567 unless &blessed($node)
710 23 544 if $node->isa('RDF::Trine::Node::Variable')
717 499 45 if (defined $id) { }
729 237 0 if (exists $self->{'id2node'}{$id}) { }
759 322 86 if (ref $page) { }
764 37 49 unless ($index)
769 86 0 unless ($list)
776 12 74 unless ($index2)
830 2 19 if ($rev) { }
845 1 26 unless $list
851 62 0 if (ref $list) { }
863 213 220 if $_ == $id
872 171 159 if ($self->_page_contains_node($list, $id)) { }
884 39 39 if ($self->_page_contains_node($list, $id)) { }