Condition Coverage

blib/lib/Perl/Critic/Policy/ErrorHandling/RequireCarping.pm
Criterion Covered Total %
condition 29 33 87.8


and 3 conditions

line !l l&&!r l&&r condition
66 67 2 2 $self->{'_allow_in_main_unless_in_subroutine'} and not $self->_is_element_contained_in_subroutine($elem)
69 0 2 $self->{'_allow_in_main_unless_in_subroutine'} and not $self->_is_element_contained_in_subroutine($elem) and $self->_is_element_in_namespace_main($elem)
85 10 31 49 $last_flattened_argument->isa('PPI::Token::Quote::Double') || $last_flattened_argument->isa('PPI::Token::Quote::Interpolate') and $last_flattened_argument_string =~ / [\\] n \z /msx
189 6 115 169 $current_candidate and not _is_simple_list_element_token($current_candidate)
121 0 169 $current_candidate and not _is_simple_list_element_token($current_candidate) and not _is_complex_expression_token($current_candidate)
216 38 14 0 $penultimate_element ne $Perl::Critic::Policy::ErrorHandling::RequireCarping::COMMA and $penultimate_element ne $Perl::Critic::Policy::ErrorHandling::RequireCarping::PERIOD
239 75 50 285 $next_sibling = $next_sibling->snext_sibling and not _is_postfix_operator($next_sibling)
297 280 5 50 $element->isa("PPI::Token::Word") and $POSTFIX_OPERATORS{$element}
373 0 1 1 $prior_elem->isa("PPI::Token::Word") and "sub" eq $prior_elem->content

or 3 conditions

line l !l&&r !l&&!r condition
85 74 6 10 $last_flattened_argument->isa('PPI::Token::Quote::Double') || $last_flattened_argument->isa('PPI::Token::Quote::Interpolate')
4 55 35 $last_flattened_argument_string =~ / \n \z /msx or $last_flattened_argument->isa('PPI::Token::Quote::Double') || $last_flattened_argument->isa('PPI::Token::Quote::Interpolate') and $last_flattened_argument_string =~ / [\\] n \z /msx