Branch Coverage

blib/lib/RDF/Query/Algebra/Project.pm
Criterion Covered Total %
branch 34 70 48.5


line true false branch
55 0 173 unless (&blessed($pattern))
58 0 173 unless (&reftype($vars) eq 'ARRAY' and not &blessed($vars))
63 245 29 if ($v->isa('RDF::Query::Node::Variable')) { }
94 0 826 if (@_)
125 281 0 $_->isa('RDF::Query::Node::Variable') ? :
139 0 0 if (/^[(]project\s+[(]\s*/) { }
145 0 0 if (/^\s*[)]/) { }
153 0 0 if (/^\s*[)]/) { }
184 0 32 if ($k->isa('RDF::Query::Expression')) { }
32 0 elsif ($k->isa('RDF::Query::Node::Variable')) { }
199 1 26 if (@aggs)
202 1 0 if ($p->isa('RDF::Query::Algebra::Sort'))
207 1 0 if ($p->isa('RDF::Query::Algebra::Filter'))
212 1 0 if $p->isa('RDF::Query::Algebra::GroupGraphPattern') and scalar @{[$p->patterns];} == 1
213 1 0 if ($p->isa('RDF::Query::Algebra::Extend') and $p->pattern->isa('RDF::Query::Algebra::Aggregate'))
218 1 0 if ($k->isa('RDF::Query::Expression::Alias')) { }
222 0 1 if ($expr->isa('RDF::Query::Expression::Binary')) { }
235 1 0 if (@groups)
241 0 27 if ($pattern->isa('RDF::Query::Algebra::Extend')) { }
245 0 0 if ($k->isa('RDF::Query::Expression::Alias')) { }
0 0 elsif ($k->isa('RDF::Query::Expression')) { }
0 0 elsif ($k->isa('RDF::Query::Node::Variable')) { }
255 0 0 exists $seen{$_} ? :
258 0 0 if ($pp->isa('RDF::Query::Algebra::Aggregate')) { }
261 0 0 if (@groups)
268 1 47 defined $agg ? :
269 1 31 defined $agg ? :
270 1 14 defined $agg ? :
13 14 $pvars eq $svars ? :
274 1 26 if ($group)
277 1 26 if ($having)
280 1 26 if ($order)
348 35 0 if ($v->isa('RDF::Query::Node::Variable')) { }
371 0 0 if (&blessed($v) and $v->isa('RDF::Query::Node::Variable') and exists $$bound{$v->name}) { }
392 1 0 if ($v->isa('RDF::Query::Node::Variable')) { }