Branch Coverage

blib/lib/RDF/Query/Compiler/SQL.pm
Criterion Covered Total %
branch 0 164 0.0


line true false branch
75 0 0 if ($model) { }
108 0 0 if ($method eq 'SELECT') { }
148 0 0 if $from_clause and $from_clause =~ /[^(]$/ and not $f =~ /^([)]|LEFT JOIN)/
153 0 0 @$where ? :
157 0 0 $unique ? :
181 0 0 if (my $limit = $options->{'limit'}) { }
205 0 0 if ($options->{'orderby'})
209 0 0 if (scalar @operands > 1)
214 0 0 if (&blessed($sort) and $sort->type eq 'VAR') { }
0 0 elsif (&blessed($sort) and $sort->type eq 'FUNCTION') { }
226 0 0 if ($col =~ /$varcol/)
235 0 0 unless (@sort)
285 0 0 unless ($col)
294 0 0 if $select_vars{$var}
304 0 0 if ($where->[$i] =~ /\b$column_alias_name\b/)
314 0 0 if $from->[$i] =~ /^[()]$/
318 0 0 if ($alias eq $col_table)
324 0 0 if $seen_joins{$valias}++
379 0 0 if (my $hook = $args{'where_hook'}) { }
389 0 0 if (my $hook = $args{'from_hook'}) { }
399 0 0 unless &blessed($triple)
401 0 0 if ($triple->isa('RDF::Query::Algebra::Triple') or $triple->isa('RDF::Query::Algebra::Quad')) { }
403 0 0 $quad ? :
414 0 0 if ($node->isa('RDF::Query::Node::Variable')) { }
0 0 elsif ($node->isa('RDF::Query::Node::Resource')) { }
0 0 elsif ($node->isa('RDF::Query::Node::Blank')) { }
0 0 elsif ($node->isa('RDF::Query::Node::Literal')) { }
416 0 0 if (exists $vars->{$name}) { }
444 0 0 if ($triple->isa('RDF::Query::Algebra::Optional')) { }
0 0 elsif ($triple->isa('RDF::Query::Algebra::NamedGraph')) { }
0 0 elsif ($triple->isa('RDF::Query::Algebra::Filter')) { }
0 0 elsif ($triple->isa('RDF::Query::Algebra::BasicGraphPattern')) { }
0 0 elsif ($triple->isa('RDF::Query::Algebra::GroupGraphPattern')) { }
0 0 elsif ($triple->isa('RDF::Query::Algebra::Distinct')) { }
0 0 elsif ($triple->isa('RDF::Query::Algebra::Limit')) { }
0 0 elsif ($triple->isa('RDF::Query::Algebra::Offset')) { }
0 0 elsif ($triple->isa('RDF::Query::Algebra::Sort')) { }
0 0 elsif ($triple->isa('RDF::Query::Algebra::Project')) { }
518 0 0 if (scalar @$triples)
548 0 0 $args{'equality'} eq 'rdf' ? :
558 0 0 if (my $hook = $args{'where_hook'})
565 0 0 if (my $hook = $args{'from_hook'})
574 0 0 unless ref $expr
577 0 0 if ($blessed and $expr->isa('RDF::Trine::Node')) { }
0 0 elsif ($blessed and $expr->isa('RDF::Query::Expression::Function')) { }
0 0 elsif ($blessed and $expr->isa('RDF::Query::Expression')) { }
578 0 0 if ($expr->isa('RDF::Trine::Node::Literal')) { }
0 0 elsif ($expr->isa('RDF::Query::Node::Blank')) { }
0 0 elsif ($expr->isa('RDF::Query::Node::Resource')) { }
0 0 elsif ($expr->isa('RDF::Query::Node::Variable')) { }
584 0 0 if ($equality eq 'rdf') { }
587 0 0 if (defined $dt) { }
590 0 0 if ($func) { }
617 0 0 if ($func) { }
621 0 0 unless exists $vars->{$key}
638 0 0 if ($op eq '!') { }
639 0 0 if ($args[0]->isa('RDF::Query::Expression::Function'))
640 0 0 if ($args[0]->uri->uri_value eq 'sparql:isbound')
649 0 0 if ($op =~ m[^(=|==|!=|[<>]=?|[*]|/|[-+])$]) { }
0 0 elsif ($op eq '&&') { }
0 0 elsif ($op eq '||') { }
651 0 0 if $op eq '!='
652 0 0 if $op eq '=='
659 0 0 if ($op eq '=')
660 0 0 if ($a_type eq 'VAR' and $b_type eq 'VAR')
670 0 0 unless ($type =~ /^(VAR|LITERAL|FUNCTION)$/)
671 0 0 if ($op =~ /^!?=$/) { }
681 0 0 if ($a_type eq 'VAR') { }
684 0 0 if ($b_type eq 'VAR') { }
696 0 0 if ($b->type eq 'VAR') { }
791 0 0 unless &blessed($node)
792 0 0 if ($node->isa('RDF::Query::Node::Resource')) { }
0 0 elsif ($node->isa('RDF::Query::Node::Blank')) { }
0 0 elsif ($node->isa('RDF::Query::Node::Literal')) { }
794 0 0 if (ref $value)
828 0 0 if (ref $uri and $uri->type eq 'URI')
832 0 0 if (ref $uri)
834 0 0 if (exists $parsed->{'namespaces'}{$abbr}) { }
855 0 0 if (ref $self) { }
891 0 0 if (&blessed($args[0]) and $args[0]->isa('RDF::Query::Node::Variable')) { }
900 0 0 if ($args[1]->type eq 'VAR') { }
964 0 0 if ($args[0] eq 'FUNCTION')