Branch Coverage

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


line true false branch
19 0 175 if @{$self->{'operands'};} >= 2
26 0 169 if @{$self->{'operands'};} >= 2
34 0 247 if defined $operator
42 1 0 if defined $operand
50 1 4 if defined $operand
63 176 152 if (&blessed($arg) and $arg->can('to_filter')) { }
81 0 83 unless $options
86 83 0 unless $delim
92 3 80 if ($operator eq 'CONTAINS') { }
4 76 elsif ($operator =~ /^STARTS( WITH)?$/) { }
1 75 elsif ($operator =~ /^ENDS( WITH)?$/) { }
94 3 0 unless &blessed($operands[1])
97 3 1 unless &blessed($operands[1])
100 1 0 unless &blessed($operands[1])
107 89 77 if (&blessed($arg) and $arg->can('to_SQL')) { }
109 0 89 if ($arg->isa('OPTIMADE::Filter::Comparison'))
115 16 61 if ($placeholder) { }
126 69 14 if (wantarray) { }
147 0 247 if (@{$self->{'operands'};} != 2)
151 0 247 if not $self->operator