Branch Coverage

blib/lib/Catmandu/Store/ElasticSearch/CQL.pm
Criterion Covered Total %
branch 0 124 0.0


line true false branch
26 0 0 unless (my $node = eval { do { $self->parser->parse($query) } })
38 0 0 unless ($node->isa('CQL::BooleanNode'))
39 0 0 $node->isa('CQL::TermNode') ? :
52 0 0 if ($node->isa('CQL::BooleanNode')) { }
0 0 elsif ($node->isa('CQL::TermNode')) { }
55 0 0 if ($node->op eq 'and') { }
0 0 elsif ($node->op eq 'or') { }
82 0 0 if ($term =~ /$RE_MATCH_ALL/)
91 0 0 if ($base eq 'scr')
92 0 0 if ($self->mapping and my $rel = $self->mapping->{'default_relation'}) { }
100 0 0 if ($qualifier =~ /$RE_ANY_FIELD/)
101 0 0 if ($self->mapping and my $idx = $self->mapping->{'default_index'}) { }
111 0 0 if ($self->mapping and my $indexes = $self->mapping->{'indexes'})
114 0 0 if $self->mapping->{'strip_separating_underscores'}
115 0 0 unless my $mapping = $indexes->{$qualifier}
117 0 0 unless $mapping->{'op'}{$base}
121 0 0 if (ref $op and $op->{'field'}) { }
0 0 elsif ($mapping->{'field'}) { }
129 0 0 if (ref $op and $op->{'filter'}) { }
0 0 elsif ($mapping->{'filter'}) { }
135 0 0 if ($filters)
137 0 0 if ($filter eq 'lowercase')
140 0 0 if (ref $op and $op->{'cb'}) { }
0 0 elsif ($mapping->{'cb'}) { }
155 0 0 if ($nested)
156 0 0 if ($nested->{'query'})
175 0 0 if (my($n) = $node->op =~ /$RE_DISTANCE_MODIFIER/)
176 0 0 if $n > 1
178 0 0 if ($qualifier =~ /$RE_ANY_FIELD/)
188 0 0 if ($base eq '=') { }
0 0 elsif ($base eq '<') { }
0 0 elsif ($base eq '>') { }
0 0 elsif ($base eq '<=') { }
0 0 elsif ($base eq '>=') { }
0 0 elsif ($base eq '<>') { }
0 0 elsif ($base eq 'exact') { }
0 0 elsif ($base eq 'any') { }
0 0 elsif ($base eq 'all') { }
0 0 elsif ($base eq 'within') { }
189 0 0 if (ref $qualifier) { }
194 0 0 if ($_ eq $self->id_key) { }
206 0 0 if ($qualifier eq $self->id_key)
213 0 0 if (ref $qualifier) { }
226 0 0 if (ref $qualifier) { }
239 0 0 if (ref $qualifier) { }
252 0 0 if (ref $qualifier) { }
265 0 0 if (ref $qualifier) { }
270 0 0 if ($_ eq $self->id_key) { }
282 0 0 if ($qualifier eq $self->id_key)
294 0 0 if (ref $qualifier) { }
299 0 0 if ($_ eq $self->id_key) { }
311 0 0 if ($qualifier eq $self->id_key)
319 0 0 if (ref $qualifier) { }
332 0 0 if ($qualifier eq $self->id_key)
344 0 0 if (ref $qualifier) { }
373 0 0 if (@range == 1)
374 0 0 if (ref $qualifier) { }
388 0 0 if (ref $qualifier) { }
410 0 0 if (ref $qualifier) { }
427 0 0 if ($term =~ /[^\\][\*\?]/)
442 0 0 if ($m->[1] eq 'fuzzy')
449 0 0 if ($term =~ /\s/)