Branch Coverage

blib/lib/RDF/Trine/Pattern.pm
Criterion Covered Total %
branch 32 40 80.0


line true false branch
51 2 1036 unless (&blessed($t) and $t->isa('RDF::Trine::Statement'))
164 4 1 if ($t->subsumes($st))
182 0 12 unless (&blessed($pattern) and $pattern->isa('RDF::Trine::Pattern'))
203 902 12 if scalar $self->triples == 1
247 31 49 if ($n->isa('RDF::Trine::Node::Variable')) { }
252 23 8 unless $structure_counts{$name}{'not_variable_count'}
253 31 0 unless $structure_counts{$name}{'literal_count'}
258 51 48 $o->isa('RDF::Trine::Node::Variable') ? :
269 6 18 if ($not_variable == 3)
283 19 8 if ($data->{'common_variable_count'} <= 1)
289 14 5 unless (&any(sub { $_ == $claimed[0]; } , @{$$just_ones{'claimed_patterns'};}))
305 0 0 unless $RDF::Trine::Pattern::b->{'common_variable_count'} <=> $RDF::Trine::Pattern::a->{'common_variable_count'} or $RDF::Trine::Pattern::b->{'literal_count'} <=> $RDF::Trine::Pattern::a->{'literal_count'} or $RDF::Trine::Pattern::b->{'not_variable_count'} <=> $RDF::Trine::Pattern::a->{'not_variable_count'}
318 0 12 if ($triples_left > 2) { }
320 0 0 if (defined $triples_by_tid{$tid})
354 0 12 if scalar @triples == 1
407 15 9 if ($t->subject->is_variable) { }
412 2 22 if ($t->predicate->is_variable) { }
415 7 15 if ($t->predicate->equal(iri('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'))) { }
421 14 10 if ($t->object->is_variable) { }
3 7 elsif ($t->object->is_literal) { }