| blib/lib/Perl/Critic/Policy/RegularExpressions/ProhibitComplexRegexes.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 16 | 87.5 |
| line | true | false | branch |
|---|---|---|---|
| 53 | 4 | 20 | if $self->{'_max_characters'} >= length $elem->get_match_string |
| 55 | 0 | 20 | unless my $re = $document->ppix_regexp_from_element($elem) |
| 57 | 1 | 19 | if $re->failures |
| 59 | 0 | 19 | unless my $qr = $re->regular_expression |
| 68 | 29 | 363 | unless $token->significant |
| 70 | 12 | 351 | if ($token->isa('PPIx::Regexp::Token::Interpolation')) { } |
| 350 | 1 | elsif ($token->isa('PPIx::Regexp::Token::Literal')) { } | |
| 89 | 13 | 6 | if $self->{'_max_characters'} >= $length |