Branch Coverage

blib/lib/RDF/Query/Expression/Binary.pm
Criterion Covered Total %
branch 43 56 76.7


line true false branch
72 1 2 if $op eq '=='
91 1 181 unless &blessed($_)
96 12 111 $_->isa('RDF::Trine::Node::Variable') ? :
58 123 $_->isa('RDF::Query::Algebra') ? :
112 29 61 if ($op =~ m[^[-+/*]$]) { }
61 0 elsif ($op =~ /^([<>]=?)|!?=$/) { }
113 29 0 if (&blessed($lhs) and &blessed($rhs) and $lhs->isa('RDF::Query::Node::Literal') and $rhs->isa('RDF::Query::Node::Literal') and $lhs->is_numeric_type and $rhs->is_numeric_type) { }
116 4 25 if ($op eq '+') { }
3 22 elsif ($op eq '-') { }
20 2 elsif ($op eq '*') { }
2 0 elsif ($op eq '/') { }
119 4 0 if (defined $lhsv and defined $rhsv) { }
127 3 0 if (defined $lhsv and defined $rhsv) { }
135 20 0 if (defined $lhsv and defined $rhsv) { }
145 1 1 if ($lt eq $rt and $lt eq 'http://www.w3.org/2001/XMLSchema#integer')
149 2 0 if (defined $lhsv and defined $rhsv) { }
150 1 1 if ($rhsv == 0)
167 25 36 if ($op =~ /[<>]/)
172 23 52 if $lhs->isa($type) and $rhs->isa($type)
174 0 2 unless ($ok or $RDF::Query::Node::Literal::LAZY_COMPARISONS)
180 14 47 if ($op eq '<') { }
1 46 elsif ($op eq '<=') { }
10 36 elsif ($op eq '>') { }
0 36 elsif ($op eq '>=') { }
36 0 elsif ($op eq '==') { }
0 0 elsif ($op eq '!=') { }
196 37 24 $bool ? :
239 0 36 if $integer_types{$type}