Condition Coverage

blib/lib/Perl/Critic/Policy/Variables/ProhibitUnusedVarsStricter.pm
Criterion Covered Total %
condition 50 79 63.2


and 3 conditions

line !l l&&!r l&&r condition
458 0 0 86 $symbol->logical_line_number == $assign->logical_line_number and $symbol->column_number < $assign->column_number
479 0 98 286 $elem and $elem = $elem->snext_sibling
619 8 0 0 $next_sib->isa("PPI::Token::Operator") and "->" eq $next_sib->content
666 12 0 2 $next_sib->isa("PPI::Token::Operator") and $LOW_PRECEDENCE_BOOLEAN{$next_sib->content}
1002 9 0 0 $elem && $elem->isa('PPI::Token::Cast') && $Perl::Critic::Policy::Variables::ProhibitUnusedVarsStricter::BSLASH eq $elem->content
1135 55 3 4 $declaration->{'is_state_in_expression'} and $self->{'_allow_state_in_expression'}
1138 50 4 4 $declaration->{'taking_reference'} and not $self->{'_prohibit_reference_only_variables'}
1141 46 4 4 $declaration->{'returned_lexical'} and not $self->{'_prohibit_returned_lexicals'}
1144 40 4 6 $declaration->{'is_unpacking'} and $self->{'_allow_unused_subroutine_arguments'}
1215 66 4 5 $stmt_loc->[0] == $inner_loc->[0] and $stmt_loc->[1] >= $inner_loc->[1]
1231 39 36 0 _inner_is_defined_by_outer($inner_elem, $parent) and _location_is_in_right_hand_side_of_assignment($parent, $inner_elem)
1252 10 29 36 $outer_elem->isa("PPI::Statement::Variable") and $inner_elem->isa("PPI::Token::Symbol")
1299 82 2 27 $kid->isa("PPI::Token::Operator") and "=" eq $kid->content
1305 24 3 0 $l->[0] == $inner_loc->[0] and $l->[1] >= $inner_loc->[1]
1359 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
1367 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
236 0 0 $decl->{'returned_lexical'} || 0
877 23 103 $self->{$PACKAGE}{'declared'}{$sym_name} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
263 30 30 0 $self->{$PACKAGE}{'ppix_objects'}{&refaddr($elem)} ||= "PPIx::QuoteLike"->new($elem)
277 9 9 0 $self->{$PACKAGE}{'ppix_objects'}{&refaddr($elem)} ||= do {
299 36 36 0 $self->{$PACKAGE}{'parent_element'}{&refaddr($ppi)} ||= $elem
458 0 86 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
799 4 0 40 $previous->isa("PPI::Token::Cast") or $previous->isa("PPI::Token::Magic")
818 1 0 3 $grand_kids[0]->isa("PPI::Token::Word") or $grand_kids[0]->isa("PPI::Token::Number::Version")