Branch Coverage

blib/lib/Jmespath/Lexer.pm
Criterion Covered Total %
branch 52 54 96.3


line true false branch
43 0 880 unless defined $expression
53 1678 3380 if (&any(sub { $_ eq $self->{'_current'}; } , keys %$SIMPLE_TOKENS)) { }
1465 1915 elsif (&any(sub { $_ eq $self->{'_current'}; } , @$START_IDENTIFIER)) { }
597 1318 elsif (&any(sub { $_ eq $self->{'_current'}; } , @$WHITESPACE)) { }
465 853 elsif ($self->{'_current'} eq '[') { }
61 792 elsif ($self->{'_current'} eq q[']) { }
78 714 elsif ($self->{'_current'} eq '|') { }
60 654 elsif ($self->{'_current'} eq '&') { }
186 468 elsif ($self->{'_current'} eq '`') { }
177 291 elsif (&any(sub { $_ eq $self->{'_current'}; } , @$VALID_NUMBER)) { }
24 267 elsif ($self->{'_current'} eq '-') { }
116 151 elsif ($self->{'_current'} eq '"') { }
13 138 elsif ($self->{'_current'} eq '<') { }
11 127 elsif ($self->{'_current'} eq '>') { }
34 93 elsif ($self->{'_current'} eq '!') { }
87 6 elsif ($self->{'_current'} eq '=') { }
86 3 462 if (not defined $next_char) { }
96 366 elsif ($next_char eq ']') { }
89 277 elsif ($next_char eq '?') { }
151 23 1 if (length $buff > 1) { }
182 87 0 if ($self->_next eq '=') { }
222 213 5982 unless defined $value
223 4529 1453 if &any(sub { $_ eq $value; } , @$identifier)
229 872 10898 if ($self->{'_position'} == $self->{'_length'} - 1) { }
245 110 1230 if ($self->{'_current'} eq $BACKSLASH)
252 1 1339 unless (defined $self->{'_current'})
328 91 105 if (not defined $next_char or $next_char ne $expected)