| blib/lib/ElasticSearch/SearchBuilder.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 68 | 90 | 75.5 | 
| line | !l | l&&!r | l&&r | condition | 
|---|---|---|---|---|
| 119 | 274 | 45 | 0 | $not and $op eq 'cache' || $op eq 'nocache' | 
| 122 | 310 | 0 | 7 | $op eq 'filter' and $type eq 'query' | 
| 178 | 4 | 56 | 0 | $v[0] && ($v[0] eq '-and' || $v[0] eq '-or') | 
| 188 | 30 | 16 | 14 | $logic ne 'and' and $type eq 'filter' | 
| 191 | 3 | 17 | 10 | defined $_ and not ref $_ | 
| 331 | 0 | 8 | 0 | $must and @$must == 1 | 
| 345 | 5 | 0 | 0 | @$must == 1 and not $should | 
| 5 | 0 | 0 | @$must == 1 and not $should and not $not | |
| 369 | 100 | 101 | 2 | $k ne 'must_not' and @$v == 1 | 
| 391 | 153 | 1 | 53 | $Range_Clauses{$type} and not exists $$_{$type}{'_cache'} | 
| 446 | 2 | 4 | 4 | $v and ref $v eq 'HASH' | 
| 1251 | 4 | 4 | 0 | ref $v eq 'ARRAY' and @$v < 2 | 
| 1268 | 12 | 4 | 4 | @scalars == @$val and @scalars > 1 | 
| 1404 | 21 | 8 | 14 | @scalars == @$val and @scalars > 1 | 
| 1419 | 0 | 3 | 3 | ref $v eq 'ARRAY' and @$v < 2 | 
| 1708 | 1 | 0 | 141 | defined $v and length $v | 
| 1715 | 1 | 2 | 492 | defined $val && length $val | 
| line | l | !l | condition | 
|---|---|---|---|
| 75 | 101 | 85 | $logic ||= 'or' | 
| 207 | 0 | 602 | $logic ||= 'and' | 
| 593 | 0 | 8 | $op ||= 'match' | 
| 622 | 8 | 8 | $op ||= 'query_string' | 
| 929 | 0 | 1 | $op ||= 'exists' | 
| 1043 | 2 | 9 | $op ||= 'cache' | 
| 1499 | 2 | 4 | $val ||= 0 | 
| 1517 | 4 | 4 | $val ||= 0 | 
| 1648 | 2708 | 0 | $ref || 'SCALAR' | 
| line | l | !l&&r | !l&&!r | condition | 
|---|---|---|---|---|
| 58 | 1 | 9 | 0 | ref $proto || $proto | 
| 119 | 1 | 1 | 43 | $op eq 'cache' || $op eq 'nocache' | 
| 1055 | 1 | 1 | 6 | $type eq 'or' or $type eq 'and' | 
| 1218 | 133 | 0 | 0 | $self->can("_query_field_$op") || $self->can("_query_field_$orig_op") || croak("Couldn't find method _query_field_$op or _query_field_$orig_op") | 
| 1351 | 52 | 39 | 0 | $RANGE_MAP{$op} || $op | 
| 1656 | 1008 | 227 | 2708 | $try[0] eq 'SCALAR' or $try[0] eq 'UNDEF' | 
| 1673 | 2293 | 0 | 0 | $method || croak("cannot dispatch on '${meth_prefix}' for " . $self->_refkind($data)) |