Branch Coverage

blib/lib/JSON/Path/Tokenizer.pm
Criterion Covered Total %
branch 31 32 96.8


line true false branch
35 40 1141 if ($token eq $JSON::Path::Tokenizer::TOKEN_SCRIPT_OPEN or $token eq $JSON::Path::Tokenizer::TOKEN_FILTER_OPEN)
49 0 1025 unless @{$chars;}
50 40 985 if $chars->[0] eq $JSON::Path::Tokenizer::RIGHT_PARENTHESIS
61 48 2807 if ($char eq $JSON::Path::Tokenizer::APOSTROPHE or $char eq $JSON::Path::Tokenizer::QUOTATION_MARK)
62 24 24 if ($in_quote and $in_quote eq $char)
70 2 2805 if ($char eq $ESCAPE_CHAR and not $in_quote)
77 101 2704 if $in_quote
80 205 2499 unless @{$chars;}
82 116 2383 if ($char eq $JSON::Path::Tokenizer::LEFT_SQUARE_BRACKET) { }
40 2343 elsif ($char eq $JSON::Path::Tokenizer::RIGHT_PARENTHESIS) { }
330 2013 elsif ($char eq $JSON::Path::Tokenizer::FULL_STOP) { }
83 1 115 if ($chars->[0] eq $JSON::Path::Tokenizer::LEFT_PARENTHESIS)
86 39 76 if ($chars->[0] eq $JSON::Path::Tokenizer::QUESTION_MARK)
102 17 313 if $chars->[0] eq $JSON::Path::Tokenizer::FULL_STOP
106 664 1795 if $OPERATORS{$token}
109 288 1507 if $OPERATORS{$chars->[0]}