Condition Coverage

blib/lib/RDF/Query/Parser/SPARQL11.pm
Criterion Covered Total %
condition 56 146 38.3


and 3 conditions

line !l l&&!r l&&r condition
608 3 0 1 $graph and not scalar @ds_keys
943 2 1 0 not $parens and $count == 0
2 1 0 not $parens and $count > 1
949 2 0 1 !$parens && $count == 1
952 0 1 0 $short and $self->_Binding_test
1574 0 0 0 &blessed($peek) and $peek->isa('RDF::Query::Algebra::BasicGraphPattern')
1756 0 0 0 not $parens and $count == 0
0 0 0 not $parens and $count > 1
1762 0 0 0 !$parens && $count == 1
1765 0 0 0 $short and $self->_Binding_test
1894 0 0 0 not $parens and $count == 0
0 0 0 not $parens and $count > 1
1900 0 0 0 !$parens && $count == 1
1904 0 0 0 $short and $self->_Binding_test
2931 0 0 0 &blessed($expr) and $expr->isa('RDF::Trine::Node::Literal')
0 0 0 &blessed($expr) and $expr->isa('RDF::Trine::Node::Literal') and $expr->is_numeric_type
2945 0 0 2 &blessed($expr) and $expr->isa('RDF::Trine::Node::Literal')
0 0 2 &blessed($expr) and $expr->isa('RDF::Trine::Node::Literal') and $expr->is_numeric_type
3068 8 5 21 $self->{'__aggregate_call_ok'} and $self->_test($r_AGGREGATE_CALL)
3216 43 0 0 $self->{'args'}{'canonicalize'} and &blessed($obj)
43 0 0 $self->{'args'}{'canonicalize'} and &blessed($obj) and $obj->isa('RDF::Trine::Node::Literal')
3259 29 0 0 $self->{'args'}{'canonicalize'} and &blessed($obj)
29 0 0 $self->{'args'}{'canonicalize'} and &blessed($obj) and $obj->isa('RDF::Trine::Node::Literal')
3271 0 0 0 $self->{'args'}{'canonicalize'} and &blessed($obj)
0 0 0 $self->{'args'}{'canonicalize'} and &blessed($obj) and $obj->isa('RDF::Trine::Node::Literal')
3531 735 0 5051 ref $thing and $thing->isa('Regexp')
3586 5768 0 7027 &blessed($thing) and $thing->isa('Regexp')
3652 171 19 18 $self->{'_modify_template'} and my $graph = $self->{'named_graph'}
190 0 18 $self->{'_modify_template'} and my $graph = $self->{'named_graph'} and $self->{'named_graph'}->isa('RDF::Trine::Node::Resource')
3676 0 0 2 &reftype($path) eq 'ARRAY' and $path->[0] eq 'PATH'

or 2 conditions

line l !l condition
124 15 86 shift() || 0
906 25 0 $self->{'build'}{'triples'} || []
1354 7 1 $self->{'build'}{'__aggregate'} ||= {}
1406 3 0 $self->{'build'}{'__aggregate'} ||= {}
1449 3 5 $self->{'build'}{'__aggregate'} ||= {}
1715 0 0 $self->{'build'}{'triples'} || []
3388 8 9 delete $self->{'build'}{'__group_by'} || []

or 3 conditions

line l !l&&r !l&&!r condition
369 0 1 100 $count == 0 or $count > 1
520 0 0 0 $graph || ()
609 1 0 0 $graph || ()
869 0 0 0 $to || 'RDF::Trine::Node::Nil'->new
870 0 0 0 $from || 'RDF::Trine::Node::Nil'->new
952 2 0 1 not $short or $short and $self->_Binding_test
1001 25 84 85 $self->_test('*') or $self->__SelectVar_test
1018 55 29 0 $v->isa('RDF::Query::Node::Variable') or $v->isa('RDF::Query::Expression::Alias')
1370 8 0 0 $v->isa('RDF::Query::Node::Variable') or $v->isa('RDF::Query::Expression::Alias')
1561 0 5 33 $need_dot or $self->_test('.')
1765 0 0 0 not $short or $short and $self->_Binding_test
1904 0 0 0 not $short or $short and $self->_Binding_test
2294 51 0 1 $self->_VerbPath_test or $self->_VerbSimple_test
2755 5 5 116 $self->_test($r_ANON) or $self->_test('_:')