Branch Coverage

blib/lib/PPIx/Regexp/Token/Structure.pm
Criterion Covered Total %
branch 47 54 87.0


line true false branch
64 0 524 unless ref $self
93 0 540 unless ref $self
142 153 893 unless $delim{$character}
146 59 834 if ($tokenizer->cookie("]"))
147 6 53 unless $character eq "]"
154 347 487 if ($character eq "(")
162 2540 55 unless my $accept = $tokenizer->find_regexp($regexp)
176 8 284 if (my $accept = $tokenizer->find_regexp(qr/ \A [(] [?] [[] /msx))
203 288 199 if ($character eq ")")
213 71 128 if ($character eq "{")
217 10 61 unless $tokenizer->prior_significant_token("can_be_quantified")
229 0 115 unless $token
235 105 10 if ($token->isa("PPIx::Regexp::Token::Literal"))
237 4 101 if ($character =~ / \A \s \z /msx)
244 33 68 if $character eq ","
246 0 68 unless $allow_digit
253 5 5 if ($token->isa("PPIx::Regexp::Token::Interpolation"))
268 63 65 if ($character eq "}")
269 13 50 unless $tokenizer->cookie("}", undef)
271 3 47 if $tokenizer->prior_significant_token("class")->isa("PPIx::Regexp::Token::Structure")
280 53 12 if ($character eq "[")
292 0 53 unless defined($character = $tokenizer->peek)
297 5 48 if ($character eq "^")
300 0 5 unless defined($character = $tokenizer->peek)
306 2 51 if $character eq "]"
320 12 0 if ($character eq "]")
325 8 4 if (my $accept = $tokenizer->find_regexp(qr/ \A []] [)] /msx) and $tokenizer->cookie("])"))