Branch Coverage

lib/OPTIMADE/Filter/Parser.yp
Criterion Covered Total %
branch 27 36 75.0


line true false branch
23 0 78 if ref $class
355 3 0 if $self->{'USER'}{'FILEIN'}
358 3 0 if ($self->YYData->{'INPUT'}) { }
372 39 39 if (not $self->YYData->{'INPUT'} and $self->{'USER'}{'FILEIN'})
375 39 0 unless exists $self->{'USER'}{'LINENO'}
381 1502 16 if defined $1
385 0 1518 if ($self->YYData->{'INPUT'} =~ s/^(\\"|\\\\)//)
391 180 1338 if ($self->YYData->{'INPUT'} =~ s/^"//)
395 184 184 if ($self->YYData->{'INPUT'} =~ s<^([A-Za-z_0-9 \t!#\$\%&\'\(\)\*\+,\-\./\:;<=>\?@\[\]\^`\{\|\}\~\P{ASCII}]+)>[]) { }
4 180 elsif ($self->YYData->{'INPUT'} =~ s/^\\([\\"])//) { }
179 1 elsif ($self->YYData->{'INPUT'} =~ s/^"//) { }
413 241 1097 if ($self->YYData->{'INPUT'} =~ s/^([a-z_][a-z0-9_]*)//)
419 240 857 if ($self->YYData->{'INPUT'} =~ s/^(AND|NOT|OR| IS|UNKNOWN|KNOWN| CONTAINS|STARTS|ENDS|WITH| LENGTH|HAS|ALL|ONLY|ANY)//x)
428 2 855 if ($allow_LIKE_operator and $self->YYData->{'INPUT'} =~ s/^(LIKE)//)
434 82 773 if ($self->YYData->{'INPUT'} =~ s/^([+-]? (\d+\.?\d*|\.\d+) ([eE][+-]?\d+)?)//x)
442 698 75 if ($char ne '')
472 0 0 if (&blessed($node) and $node->can('modify')) { }
0 0 elsif (ref $node eq 'ARRAY') { }