Branch Coverage

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


line true false branch
23 0 76 if ref $class
355 3 0 if $self->{'USER'}{'FILEIN'}
358 3 0 if ($self->YYData->{'INPUT'}) { }
372 38 38 if (not $self->YYData->{'INPUT'} and $self->{'USER'}{'FILEIN'})
375 38 0 unless exists $self->{'USER'}{'LINENO'}
381 1402 16 if defined $1
385 0 1418 if ($self->YYData->{'INPUT'} =~ s/^(\\"|\\\\)//)
391 172 1246 if ($self->YYData->{'INPUT'} =~ s/^"//)
395 176 176 if ($self->YYData->{'INPUT'} =~ s<^([A-Za-z_0-9 \t!#\$\%&\'\(\)\*\+,\-\./\:;<=>\?@\[\]\^`\{\|\}\~\P{ASCII}]+)>[]) { }
4 172 elsif ($self->YYData->{'INPUT'} =~ s/^\\([\\"])//) { }
171 1 elsif ($self->YYData->{'INPUT'} =~ s/^"//) { }
413 225 1021 if ($self->YYData->{'INPUT'} =~ s/^([a-z_][a-z0-9_]*)//)
419 226 795 if ($self->YYData->{'INPUT'} =~ s/^(AND|NOT|OR| IS|UNKNOWN|KNOWN| CONTAINS|STARTS|ENDS|WITH| LENGTH|HAS|ALL|ONLY|ANY)//x)
428 2 793 if ($allow_LIKE_operator and $self->YYData->{'INPUT'} =~ s/^(LIKE)//)
434 74 719 if ($self->YYData->{'INPUT'} =~ s/^([+-]? (\d+\.?\d*|\.\d+) ([eE][+-]?\d+)?)//x)
442 646 73 if ($char ne '')
472 0 0 if (&blessed($node) and $node->can('modify')) { }
0 0 elsif (ref $node eq 'ARRAY') { }