Branch Coverage

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


line true false branch
24 0 97 if ref $class
401 4 0 if $self->{'USER'}{'FILEIN'}
404 4 0 if ($self->YYData->{'INPUT'}) { }
418 49 48 if (not $self->YYData->{'INPUT'} and $self->{'USER'}{'FILEIN'})
421 49 0 unless exists $self->{'USER'}{'LINENO'}
427 1725 16 if defined $1
431 0 1741 if ($self->YYData->{'INPUT'} =~ s/^(\\"|\\\\)//)
437 189 1552 if ($self->YYData->{'INPUT'} =~ s/^"//)
441 193 193 if ($self->YYData->{'INPUT'} =~ s<^([A-Za-z_0-9 \t!#\$\%&\'\(\)\*\+,\-\./\:;<=>\?@\[\]\^`\{\|\}\~\P{ASCII}]+)>[]) { }
4 189 elsif ($self->YYData->{'INPUT'} =~ s/^\\([\\"])//) { }
188 1 elsif ($self->YYData->{'INPUT'} =~ s/^"//) { }
459 274 1278 if ($self->YYData->{'INPUT'} =~ s/^([a-z_][a-z0-9_]*)//)
465 309 969 if ($self->YYData->{'INPUT'} =~ s/^(AND|NOT|OR| IS|UNKNOWN|KNOWN| CONTAINS|STARTS|ENDS|WITH| LENGTH|HAS|ALL|ONLY|ANY| TRUE|FALSE)//x)
475 2 967 if ($allow_LIKE_operator and $self->YYData->{'INPUT'} =~ s/^(LIKE)//)
481 83 884 if ($self->YYData->{'INPUT'} =~ s/^([+-]? (\d+\.?\d*|\.\d+) ([eE][+-]?\d+)?)//x)
489 791 93 if ($char ne "")
519 0 0 if (builtin::blessed($node) and $node->can('modify')) { }
0 0 elsif (ref $node eq 'ARRAY') { }