Branch Coverage

blib/lib/OPTIMADE/Filter/Comparison.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
18 0 159 if @{$self->{'operands'};} >= 2
25 0 153 if @{$self->{'operands'};} >= 2
33 0 223 if defined $operator
41 1 0 if defined $operand
49 1 4 if defined $operand
62 160 136 if (&blessed($arg) and $arg->can('to_filter')) { }
80 15 60 unless $options
85 75 0 unless $delim
91 3 72 if ($operator eq 'CONTAINS') { }
4 68 elsif ($operator =~ /^STARTS( WITH)?$/) { }
1 67 elsif ($operator =~ /^ENDS( WITH)?$/) { }
93 3 0 unless &blessed($operands[1])
96 3 1 unless &blessed($operands[1])
99 1 0 unless &blessed($operands[1])
105 81 69 if (&blessed($arg) and $arg->can('to_SQL')) { }
110 16 53 if ($placeholder) { }
121 61 14 if (wantarray) { }
142 0 223 if (@{$self->{'operands'};} != 2)
146 0 223 if not $self->operator