Branch Coverage

blib/lib/SQL/Entity/Condition.pm
Criterion Covered Total %
branch 55 74 74.3


line true false branch
129 9 79 if defined $value
162 0 100 unless grep {$attribute eq $_;} @attributes
179 4 32 if (ref $result eq 'HASH')
214 7 1 unless $self->relation
216 7 1 if ($self->relation eq 'AND') { }
234 2 1 unless $self->relation
237 2 1 if ($self->relation eq 'OR') { }
300 3 43 if (ref $operand1 eq 'SQL::Entity::Column') { }
304 7 36 $operand1 && $$columns{$operand1} ? :
308 0 46 $column && ref $column eq 'SQL::Entity::Column::SubQuery' ? :
309 0 46 if $subquery
311 42 0 $self->operator ? :
0 42 $case_insensitive ? :
0 42 $case_insensitive ? :
42 4 $operand1 ? :
318 0 46 if $subquery
320 15 31 if (@$conditions)
324 17 4 $result ? :
2 19 $condition->relation ? :
2 19 $condition->relation ? :
344 0 84 unless defined $operand
346 6 78 if (ref $operand eq 'SQL::Entity::Column') { }
12 66 elsif (ref $bind_variables eq 'ARRAY') { }
0 66 elsif (ref $bind_variables eq 'HASH') { }
7 59 elsif (my $column = $$columns{$operand}) { }
349 0 6 unless $operand->queryable
353 1 11 if (ref $operand) { }
361 0 0 if (ref $operand) { }
370 0 7 unless $column->queryable
376 1 58 if (ref $operand eq 'ARRAY') { }
393 0 0 ref $column ? :
396 0 0 if (exists $$bind_variables{$result})
398 0 0 if exists $$bind_variables{$result}
428 10 4 if (not $result) { }
450 1 13 if ($operand_type eq 'ARRAY') { }
2 11 elsif ($operand_type eq 'HASH') { }
453 1 1 if $$operand{'relation'}