Condition Coverage

blib/lib/Perl/Critic/Policy/Variables/ProhibitUnusedVarsStricter.pm
Criterion Covered Total %
condition 48 67 71.6


and 3 conditions

line !l l&&!r l&&r condition
499 0 0 88 $symbol->logical_line_number == $assign->logical_line_number and $symbol->column_number < $assign->column_number
520 0 100 299 $elem and $elem = $elem->snext_sibling
659 10 0 2 $next_sib->isa("PPI::Token::Operator") and $next_sib->content eq $DEREF
678 8 0 1 $next_sib->isa("PPI::Token::Operator") and "->" eq $next_sib->content
725 12 0 2 $next_sib->isa("PPI::Token::Operator") and $LOW_PRECEDENCE_BOOLEAN{$next_sib->content}
1059 7 0 0 $elem && $elem->isa('PPI::Token::Cast') && $Perl::Critic::Policy::Variables::ProhibitUnusedVarsStricter::BSLASH eq $elem->content
1138 56 3 4 $declaration->{'is_state_in_expression'} and $self->{'_allow_state_in_expression'}
1141 51 4 4 $declaration->{'taking_reference'} and not $self->{'_prohibit_reference_only_variables'}
1144 47 4 4 $declaration->{'returned_lexical'} and not $self->{'_prohibit_returned_lexicals'}
1147 41 4 6 $declaration->{'is_unpacking'} and $self->{'_allow_unused_subroutine_arguments'}
1218 66 5 5 $stmt_loc->[0] == $inner_loc->[0] and $stmt_loc->[1] >= $inner_loc->[1]
1234 43 37 0 _inner_is_defined_by_outer($inner_elem, $parent) and _location_is_in_right_hand_side_of_assignment($parent, $inner_elem)
1255 14 29 37 $outer_elem->isa("PPI::Statement::Variable") and $inner_elem->isa("PPI::Token::Symbol")
1302 84 2 28 $kid->isa("PPI::Token::Operator") and "=" eq $kid->content
1308 25 3 0 $l->[0] == $inner_loc->[0] and $l->[1] >= $inner_loc->[1]

or 2 conditions

line l !l condition
238 0 0 $decl->{'returned_lexical'} || 0
934 23 106 $self->{$PACKAGE}{'declared'}{$sym_name} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
267 31 31 0 $self->{$PACKAGE}{'ppix_objects'}{builtin::refaddr($elem)} ||= "PPIx::QuoteLike"->new($elem)
281 9 9 0 $self->{$PACKAGE}{'ppix_objects'}{builtin::refaddr($elem)} ||= do {
303 37 37 0 $self->{$PACKAGE}{'parent_element'}{builtin::refaddr($ppi)} ||= $elem
499 0 88 0 $symbol->logical_line_number < $assign->logical_line_number or $symbol->logical_line_number == $assign->logical_line_number and $symbol->column_number < $assign->column_number
858 4 0 40 $previous->isa("PPI::Token::Cast") or $previous->isa("PPI::Token::Magic")
877 1 0 3 $grand_kids[0]->isa("PPI::Token::Word") or $grand_kids[0]->isa("PPI::Token::Number::Version")