Branch Coverage

blib/lib/OPTIMADE/Filter/Comparison.pm
Criterion Covered Total %
branch 29 40 72.5


line true false branch
18 0 175 if @{$self->{'operands'};} >= 2
25 0 169 if @{$self->{'operands'};} >= 2
33 0 247 if defined $operator
41 1 0 if defined $operand
49 1 4 if defined $operand
62 176 152 if (&blessed($arg) and $arg->can('to_filter')) { }
80 0 83 unless $options
85 83 0 unless $delim
91 3 80 if ($operator eq 'CONTAINS') { }
4 76 elsif ($operator =~ /^STARTS( WITH)?$/) { }
1 75 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])
106 89 77 if (&blessed($arg) and $arg->can('to_SQL')) { }
108 0 89 if ($arg->isa('OPTIMADE::Filter::Comparison'))
114 16 61 if ($placeholder) { }
125 69 14 if (wantarray) { }
146 0 247 if (@{$self->{'operands'};} != 2)
150 0 247 if not $self->operator