Branch Coverage

blib/lib/Perl/Critic/Policy/RegularExpressions/ProhibitSingleCharAlternation.pm
Criterion Covered Total %
branch 16 18 88.8


line true false branch
36 3 9 unless $elem =~ /[|]/msx
38 0 9 unless my $re = $document->ppix_regexp_from_element($elem)
39 1 8 if $re->failures
45 0 8 unless $re->find_parents(sub {
50 33 139 if ($kid->isa('PPIx::Regexp::Token::Operator') and $kid->content eq '|') { }
70 69 elsif ($kid->significant) { }
55 13 20 if @alternative == 1 and $alternative[0]->isa("PPIx::Regexp::Token::Literal")
63 3 6 if @alternative == 1 and $alternative[0]->isa("PPIx::Regexp::Token::Literal")
65 3 6 if (1 < @singles)