Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
67 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)
86 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
190 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)
217 38 14 0 $penultimate_element ne $Perl::Critic::Policy::ErrorHandling::RequireCarping::COMMA and $penultimate_element ne $Perl::Critic::Policy::ErrorHandling::RequireCarping::PERIOD
240 75 50 285 $next_sibling = $next_sibling->snext_sibling and not _is_postfix_operator($next_sibling)
298 280 55 0 $element->isa('PPI::Token::Word') && $postfix_operators->{$element}
359 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
86 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