Condition Coverage

blib/lib/Perl/Critic/Policy/Variables/ProhibitUnusedVarsStricter.pm
Criterion Covered Total %
condition 51 77 66.2


and 3 conditions

line !l l&&!r l&&r condition
473 0 0 84 $symbol->logical_line_number == $assign->logical_line_number and $symbol->column_number < $assign->column_number
494 15 81 179 $elem and $elem = $elem->snext_sibling
594 8 0 0 $next_sib->isa("PPI::Token::Operator") and "->" eq $next_sib->content
634 10 0 2 $next_sib->isa("PPI::Token::Operator") and $LOW_PRECEDENCE_BOOLEAN{$next_sib->content}
963 5 0 0 $elem && $elem->isa('PPI::Token::Cast') && $Perl::Critic::Policy::Variables::ProhibitUnusedVarsStricter::BSLASH eq $elem->content
1096 51 1 2 $declaration->{'is_state_in_expression'} and $self->{'_allow_state_in_expression'}
1099 44 4 4 $declaration->{'taking_reference'} and not $self->{'_prohibit_reference_only_variables'}
1102 44 2 2 $declaration->{'returned_lexical'} and not $self->{'_prohibit_returned_lexicals'}
1105 36 4 6 $declaration->{'is_unpacking'} and $self->{'_allow_unused_subroutine_arguments'}
1176 66 4 5 $stmt_loc->[0] == $inner_loc->[0] and $stmt_loc->[1] >= $inner_loc->[1]
1192 39 36 0 _inner_is_defined_by_outer($inner_elem, $parent) and _location_is_in_right_hand_side_of_assignment($parent, $inner_elem)
1213 10 29 36 $outer_elem->isa("PPI::Statement::Variable") and $inner_elem->isa("PPI::Token::Symbol")
1260 82 2 27 $kid->isa("PPI::Token::Operator") and "=" eq $kid->content
1266 24 3 0 $l->[0] == $inner_loc->[0] and $l->[1] >= $inner_loc->[1]
1320 0 0 3 $annotation = $doc->child(0) and $annotation->isa("PPI::Token::Comment")
0 0 3 $annotation = $doc->child(0) and $annotation->isa("PPI::Token::Comment") and $annotation->content =~ / \A \#line\b /msx
1328 0 0 3 $wid and $annotation = $doc->child(0)
0 0 3 $wid and $annotation = $doc->child(0) and $annotation->isa("PPI::Token::Whitespace")
0 0 3 $wid and $annotation = $doc->child(0) and $annotation->isa("PPI::Token::Whitespace") and $wid == length $annotation->content

or 2 conditions

line l !l condition
845 23 95 $self->{$PACKAGE}{'declared'}{$sym_name} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
260 30 30 0 $self->{$PACKAGE}{'ppix_objects'}{&refaddr($elem)} ||= "PPIx::QuoteLike"->new($elem)
274 9 9 0 $self->{$PACKAGE}{'ppix_objects'}{&refaddr($elem)} ||= do {
296 36 36 0 $self->{$PACKAGE}{'parent_element'}{&refaddr($ppi)} ||= $elem
473 0 84 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
767 4 0 40 $previous->isa("PPI::Token::Cast") or $previous->isa("PPI::Token::Magic")
786 1 0 3 $grand_kids[0]->isa("PPI::Token::Word") or $grand_kids[0]->isa("PPI::Token::Number::Version")