Branch Coverage

blib/lib/Perl/Critic/Policy/RegularExpressions/ProhibitEnumeratedClasses.pm
Criterion Covered Total %
branch 0 28 0.0


line true false branch
48 0 0 unless $elem =~ /\[/msx
50 0 0 unless my $re = $document->ppix_regexp_from_element($elem)
51 0 0 if $re->failures
53 0 0 unless my $anyofs = $re->find("PPIx::Regexp::Structure::CharClass")
57 0 0 if $violation = $self->_get_character_class_violations($elem, $anyof)
73 0 0 if (&all(sub {
75 0 0 $neg ? :
76 0 0 unless defined $improvement
78 0 0 if ($neg and not defined $PATTERNS[$i + 1][0])
81 0 0 if 1 != scalar keys %elements
84 0 0 $neg ? :
101 0 0 if ($element->isa('PPIx::Regexp::Token::Literal')) { }
0 0 elsif ($element->isa('PPIx::Regexp::Node')) { }
103 0 0 if exists $ORDINALS{$ord}