Condition Coverage

blib/lib/Perl/Critic/Policy/Subroutines/RequireFinalReturn.pm
Criterion Covered Total %
condition 7 47 14.8


and 3 conditions

line !l l&&!r l&&r condition
126 0 0 0 $begin->isa("PPI::Token::Word") and $$is_if_or_unless{$begin->content}
154 0 0 0 $begin->isa("PPI::Token::Word") and $begin->content eq "given"
180 0 0 0 $first_token = $stmnt->schild(0) and "default" eq $first_token->content
220 0 0 0 $second_token->isa("PPI::Token::Operator") and $second_token eq "->"
261 0 0 0 $elem->isa("PPI::Token::Word") and "when" eq $elem->content

or 2 conditions

line l !l condition
204 4 0 $stmnt->schild(0) || (return)
216 0 0 $stmnt->schild(0) || (return)
219 0 0 $stmnt->schild(1) || (return)
222 0 0 $stmnt->schild(2) || (return)

or 3 conditions

line l !l&&r !l&&!r condition
68 0 4 1 $self->_block_is_empty($block) or $self->_block_has_return($block)
98 4 0 1 $self->_is_explicit_return($final) || $self->_is_given_when_return($final) || $self->_is_compound_return($final)
109 4 0 0 $self->_is_return_or_goto_stmnt($final) || $self->_is_terminal_stmnt($final)
130 0 0 0 $_->isa('PPI::Structure::Condition') || $_->isa('PPI::Token')
159 0 0 0 $_->isa('PPI::Structure::Given') || $_->isa('PPI::Token')
205 4 0 0 $first_token->content eq 'return' || $first_token->content eq 'goto'
240 0 0 0 $_->isa('PPI::Token') || $_->isa('PPI::Structure::When')
261 0 0 0 $self->_is_return_or_goto_stmnt($stmnt) || $self->_is_terminal_stmnt($stmnt)