Branch Coverage

blib/lib/Perl/Critic/Policy/ControlStructures/ProhibitUnreachableCode.pm
Criterion Covered Total %
branch 8 24 33.3


line true false branch
40 0 346 unless $statement
46 339 7 unless exists $TERMINALS{$elem} or $statement->isa("PPI::Statement::Break")
49 1 6 unless is_function_call($elem)
60 0 18 if exists $OPERATORS{$child} and $child->isa("PPI::Token::Operator")
61 1 17 if exists $CONDITIONALS{$child} and $child->isa("PPI::Token::Word")
80 0 0 if @children and $children[0]->isa("PPI::Token::Label")
81 0 0 if $statement->isa("PPI::Statement::Sub")
82 0 0 if $statement->isa("PPI::Statement::End")
83 0 0 if $statement->isa("PPI::Statement::Data")
84 0 0 if $statement->isa("PPI::Statement::Package")
86 0 0 if $statement->isa("PPI::Statement::Include") and $statement->type ne "require"
89 0 0 if $statement->isa("PPI::Statement::Variable") and $statement->type eq "our"