Branch Coverage

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


line true false branch
15 0 130 if (@_ == 2) { }
130 0 elsif (@_ == 3) { }
27 0 204 if defined $operator
34 0 0 if @{$self->{'operands'};} >= 2
41 0 0 if @{$self->{'operands'};} >= 2
49 0 0 if defined $operand
57 0 0 if defined $operand
70 256 0 if (&blessed($arg) and $arg->can('to_filter')) { }
88 0 64 unless $options
94 64 0 unless $delim
101 128 0 if (&blessed($arg) and $arg->can('to_SQL')) { }
104 14 114 if ($@)
108 39 5 if ($self->{'operands'}[$i]->isa('OPTIMADE::Filter::AndOr') and !$flatten || $self->operator ne $self->{'operands'}[$i]->operator)
115 0 0 if ($placeholder) { }
125 48 16 if (wantarray) { }
146 0 192 if (@{$self->{'operands'};} != 2)
150 0 192 if not $self->operator