Branch Coverage

blib/lib/Attean/API/Query.pm
Criterion Covered Total %
branch 81 96 84.3


line true false branch
72 150 0 if (my $cb = $args{'prefix'})
78 2 148 if (my $cb = $args{'postfix'})
94 1 1 unless exists $types{ref $self}
105 1 0 scalar @keys == 0 ? :
126 1 2 if $$seen{&refaddr($self)}++
127 2 0 if (my $cb = $cb{'prefix'})
133 0 2 if (my $cb = $cb{'postfix'})
145 21 22 if $a->isa($t) or $a->does($t)
174 0 29 if ($self->does('Attean::API::SPARQLQuerySerializable')) { }
190 29 4 unless $dataset->{'default'}
191 29 4 unless $dataset->{'named'}
194 4 29 if ($has_dataset)
223 3 30 if ($algebra->isa('Attean::Algebra::Ask')) { }
3 27 elsif ($algebra->isa('Attean::Algebra::Describe')) { }
3 24 elsif ($algebra->isa('Attean::Algebra::Construct')) { }
236 27 6 unless ($form eq "CONSTRUCT" or $form eq "DESCRIBE")
240 4 26 if ($algebra->isa('Attean::Algebra::Distinct')) { }
2 24 elsif ($algebra->isa('Attean::Algebra::Reduced')) { }
6 18 elsif ($algebra->isa('Attean::Algebra::Slice')) { }
1 17 elsif ($algebra->isa('Attean::Algebra::OrderBy')) { }
4 13 elsif ($algebra->isa('Attean::Algebra::Extend')) { }
12 1 elsif ($algebra->isa('Attean::Algebra::Project')) { }
1 0 elsif ($algebra->isa('Attean::Algebra::Group')) { }
245 6 0 if ($algebra->limit >= 0)
248 4 2 if ($algebra->offset > 0)
269 5 7 if (scalar @vars == scalar @subvars and join('.', @vars) eq join('.', @subvars)) { }
274 13 0 unless ($modifiers{'project_variables'}{$name}++)
291 1 0 unless ($modifiers{'project_variables'}{$name}++)
313 24 9 if ($form eq 'SELECT') { }
3 6 elsif ($form eq 'DESCRIBE') { }
3 3 elsif ($form eq 'CONSTRUCT') { }
3 0 elsif ($form eq 'ASK') { }
315 4 20 if ($modifiers{'distinct'}) { }
2 18 elsif ($modifiers{'reduced'}) { }
321 8 16 if (my $p = $modifiers{'project_variables_order'}) { }
323 5 9 if (my $etokens = $modifiers{'project_expression_tokens'}{$name}) { }
337 1 23 if ($algebra->isa('Attean::Algebra::Join')) { }
345 1 23 if (my $groups = $modifiers{'groups'})
350 0 24 if (my $expr = $modifiers{'having'})
354 1 23 if (my $comps = $modifiers{'order'})
361 6 18 if (exists $modifiers{'limit'})
365 4 20 if (exists $modifiers{'offset'})
432 1 1 unless scalar @{$self->children;} == 1
459 0 4 if ($a->isa('Attean::Algebra::BGP')) { }
0 4 elsif ($a->isa('Attean::Algebra::Path')) { }
567 1 4 if ($path->does("Attean::API::UnaryPropertyPath"))
594 2 5 if (scalar @children == 1) { }
632 0 0 unless scalar @c