Branch Coverage

blib/lib/OPTiMaDe/Filter/Comparison.pm
Criterion Covered Total %
branch 26 38 68.4


line true false branch
15 0 159 if @{$self->{'operands'};} >= 2
22 0 153 if @{$self->{'operands'};} >= 2
30 0 222 if defined $operator
38 0 0 if defined $operand
46 0 0 if defined $operand
59 160 136 if (&blessed($arg) and $arg->can('to_filter')) { }
77 15 59 unless $options
82 74 0 unless $delim
88 3 71 if ($operator eq 'CONTAINS') { }
4 67 elsif ($operator =~ /^STARTS( WITH)?$/) { }
1 66 elsif ($operator =~ /^ENDS( WITH)?$/) { }
90 3 0 unless &blessed($operands[1])
93 3 1 unless &blessed($operands[1])
96 1 0 unless &blessed($operands[1])
102 80 68 if (&blessed($arg) and $arg->can('to_SQL')) { }
107 15 53 if ($placeholder) { }
118 60 14 if (wantarray) { }
139 0 222 if (@{$self->{'operands'};} != 2)
143 0 222 if not $self->operator