Branch Coverage

blib/lib/OPTIMADE/Filter/AndOr.pm
Criterion Covered Total %
branch 15 34 44.1


line true false branch
16 0 142 if (@_ == 2) { }
142 0 elsif (@_ == 3) { }
28 0 222 if defined $operator
35 0 0 if @{$self->{'operands'};} >= 2
42 0 0 if @{$self->{'operands'};} >= 2
50 0 0 if defined $operand
58 0 0 if defined $operand
71 280 0 if (builtin::blessed($arg) and $arg->can('to_filter')) { }
89 0 70 unless $options
95 70 0 unless $delim
102 140 0 if (builtin::blessed($arg) and $arg->can('to_SQL')) { }
105 24 116 if ($@)
109 41 5 if ($self->{'operands'}[$i]->isa("OPTIMADE::Filter::AndOr") and !$flatten || $self->operator ne $self->{'operands'}[$i]->operator)
116 0 0 if ($placeholder) { }
126 50 20 if (wantarray) { }
147 0 210 if (@{$self->{'operands'};} != 2)
151 0 210 if not $self->operator