Branch Coverage

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


line true false branch
16 0 130 if (@_ == 2) { }
130 0 elsif (@_ == 3) { }
28 0 204 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 256 0 if (&blessed($arg) and $arg->can('to_filter')) { }
89 0 64 unless $options
95 64 0 unless $delim
102 128 0 if (&blessed($arg) and $arg->can('to_SQL')) { }
105 14 114 if ($@)
109 39 5 if ($self->{'operands'}[$i]->isa('OPTIMADE::Filter::AndOr') and !$flatten || $self->operator ne $self->{'operands'}[$i]->operator)
116 0 0 if ($placeholder) { }
126 48 16 if (wantarray) { }
147 0 192 if (@{$self->{'operands'};} != 2)
151 0 192 if not $self->operator