Branch Coverage

blib/lib/OPTIMADE/Filter/Comparison.pm
Criterion Covered Total %
branch 30 40 75.0


line true false branch
19 0 259 if @{$self->{'operands'};} >= 2
26 0 185 if @{$self->{'operands'};} >= 2
34 0 345 if defined $operator
42 5 68 if defined $operand
50 5 4 if defined $operand
63 216 152 if (builtin::blessed($arg) and $arg->can('to_filter')) { }
81 0 93 unless $options
86 93 0 unless $delim
92 3 90 if ($operator eq 'CONTAINS') { }
4 86 elsif ($operator =~ /^STARTS( WITH)?$/) { }
1 85 elsif ($operator =~ /^ENDS( WITH)?$/) { }
94 3 0 unless builtin::blessed($operands[1])
97 3 1 unless builtin::blessed($operands[1])
100 1 0 unless builtin::blessed($operands[1])
107 107 77 if (builtin::blessed($arg) and $arg->can('to_SQL')) { }
109 0 97 if ($arg->isa("OPTIMADE::Filter::Comparison"))
115 16 61 if ($placeholder) { }
126 69 14 if (wantarray) { }
147 0 277 if (@{$self->{'operands'};} != 2)
151 0 277 if not $self->operator