Branch Coverage

blib/lib/AtteanX/RDFQueryTranslator.pm
Criterion Covered Total %
branch 48 144 33.3


line true false branch
64 0 2 unless &blessed($query)
67 0 2 if (exists $parsed->{'base'} and my $base = $t->translate($parsed->{'base'}))
72 0 2 if (my $b = $parsed->{'bindings'})
79 0 0 if (my $term = $row->[$i])
88 0 2 if ($method eq 'ASK')
104 0 17 unless &blessed($a)
105 0 17 if ($a->isa('RDF::Query::Algebra::Construct')) { }
2 15 elsif ($a->isa('RDF::Query::Algebra::Project')) { }
2 13 elsif ($a->isa('RDF::Query::Algebra::GroupGraphPattern')) { }
2 11 elsif ($a->isa('RDF::Query::Algebra::BasicGraphPattern')) { }
2 9 elsif ($a->isa('RDF::Query::Algebra::Triple')) { }
7 2 elsif ($a->isa('RDF::Query::Node::Variable')) { }
0 2 elsif ($a->isa('RDF::Query::Node::Resource')) { }
0 2 elsif ($a->isa('RDF::Query::Node::Blank')) { }
0 2 elsif ($a->isa('RDF::Query::Node::Literal')) { }
0 2 elsif ($a->isa('RDF::Query::Algebra::Limit')) { }
0 2 elsif ($a->isa('RDF::Query::Algebra::Offset')) { }
0 2 elsif ($a->isa('RDF::Query::Algebra::Path')) { }
0 2 elsif ($a->isa('RDF::Query::Algebra::Service')) { }
0 2 elsif ($a->isa('RDF::Query::Algebra::NamedGraph')) { }
1 1 elsif ($a->isa('RDF::Query::Algebra::Filter')) { }
0 1 elsif ($a->isa('RDF::Query::Expression::Binary')) { }
0 1 elsif ($a->isa('RDF::Query::Expression::Unary')) { }
0 1 elsif ($a->isa('RDF::Query::Algebra::Extend')) { }
0 1 elsif ($a->isa('RDF::Query::VariableBindings')) { }
0 1 elsif ($a->isa('RDF::Query::Algebra::Table')) { }
0 1 elsif ($a->isa('RDF::Query::Algebra::Aggregate')) { }
0 1 elsif ($a->isa('RDF::Query::Algebra::Sort')) { }
0 1 elsif ($a->isa('RDF::Query::Algebra::Distinct')) { }
0 1 elsif ($a->isa('RDF::Query::Algebra::Minus')) { }
0 1 elsif ($a->isa('RDF::Query::Algebra::Union')) { }
0 1 elsif ($a->isa('RDF::Query::Algebra::Optional')) { }
0 1 elsif ($a->isa('RDF::Query::Algebra::SubSelect')) { }
1 0 elsif ($a->isa('RDF::Query::Expression::Function')) { }
107 0 0 unless $a->triples
108 0 0 if (scalar @triples == 1 and $triples[0]->isa('RDF::Query::Algebra::BasicGraphPattern'))
122 0 2 if (scalar @p == 0) { }
138 0 7 $a->isa('RDF::Query::Node::Variable::ExpressionProxy') ? :
139 1 6 if $self->_in_expr
143 0 0 if $self->_in_expr
147 0 0 if $self->_in_expr
151 0 0 if ($a->has_language) { }
0 0 elsif ($a->has_datatype) { }
158 0 0 if $self->_in_expr
162 0 0 if ($child->isa('RDF::Query::Algebra::Offset')) { }
191 0 0 if $op eq '=='
198 0 0 if $op eq '=='
206 0 0 if ($v->isa('RDF::Query::Expression::Alias')) { }
218 0 0 if (my $term = $a->{$v})
231 0 0 if ($g->isa('RDF::Query::Expression::Alias')) { }
295 0 1 if ($uri eq 'sparql:logical-and') { }
0 1 elsif ($uri eq 'sparql:logical-or') { }
1 0 elsif ($uri =~ /^sparql:(.+)$/u) { }
0 0 elsif ($uri =~ m[^http://www[.]w3[.]org/2001/XMLSchema#(?<cast>integer|decimal|float|double|string|boolean|dateTime)$]u) { }
308 0 1 if ($1 eq 'exists') { }
313 0 1 $self->has_base ? :
317 0 0 if ($cast =~ /^(?:integer|decimal|float|double)$/u) { }
0 0 elsif ($cast eq 'string') { }
0 0 elsif ($cast eq 'boolean') { }
0 0 elsif ($cast eq 'dateTime') { }
320 0 0 $self->has_base ? :
373 0 0 if (&blessed($path) and $path->isa('RDF::Query::Node::Resource'))
378 0 0 if ($op eq '!') { }
0 0 elsif ($op eq '/') { }
0 0 elsif ($op eq '?') { }
0 0 elsif ($op eq '*') { }
0 0 elsif ($op eq '+') { }
0 0 elsif ($op eq '^') { }
0 0 elsif ($op eq '|') { }
384 0 0 if ($_->does('Attean::API::IRI'))
400 0 0 if ($path->does('Attean::API::IRI'))
407 0 0 if ($_->does('Attean::API::IRI'))