Condition Coverage

blib/lib/Perl/Critic/Policy/RegularExpressions/ProhibitEmptyAlternatives.pm
Criterion Covered Total %
condition 30 39 76.9


and 3 conditions

line !l l&&!r l&&r condition
70 24 0 1 $self->{'_ignore_files__re'} and defined(my $logical_filename = $document->logical_filename)
106 172 0 48 $kid->isa($OPERATOR_CLASS) and $Perl::Critic::Policy::RegularExpressions::ProhibitEmptyAlternatives::PIPE eq $kid->content
112 154 10 8 $kid->isa($NODE_CLASS) and $self->_is_node_in_violation($kid)
141 8 1 5 $prev_is_alternation and not $found_empty_alternative
9 4 1 $prev_is_alternation and not $found_empty_alternative and $self->{'_allow_empty_final_alternative'}
146 5 3 5 $self->{'_allow_if_group_anchored'} and $self->_is_node_anchored($node)
172 9 0 1 $elem->isa($OPERATOR_CLASS) and $Perl::Critic::Policy::RegularExpressions::ProhibitEmptyAlternatives::PIPE eq $elem->content
201 5 0 0 $elem->isa('PPIx::Regexp::Structure::Assertion') and $ZERO_LENGTH_LOOKBEHIND{$elem->content}
253 9 0 1 defined $config_string and $Perl::Critic::Policy::RegularExpressions::ProhibitEmptyAlternatives::EMPTY ne $config_string

or 3 conditions

line l !l&&r !l&&!r condition
109 7 9 32 $found_empty_alternative ||= $prev_is_alternation
127 9 8 16 $found_empty_alternative or $prev_is_alternation
163 9 4 0 $elem->snext_sibling || $elem->parent
244 1 0 0 $parent->schild($LAST_ELEMENT) || $elem