Branch Coverage

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


line true false branch
40 0 451 unless $statement
46 408 20 unless exists $TERMINALS{$elem} or $statement->isa("PPI::Statement::Break")
49 5 38 unless is_function_call($elem)
60 2 94 if exists $OPERATORS{$child} and $child->isa("PPI::Token::Operator")
61 8 86 if exists $CONDITIONALS{$child} and $child->isa("PPI::Token::Word")
80 5 22 if @children and $children[0]->isa("PPI::Token::Label")
81 4 18 if $statement->isa("PPI::Statement::Sub")
82 1 17 if $statement->isa("PPI::Statement::End")
83 1 16 if $statement->isa("PPI::Statement::Data")
84 1 15 if $statement->isa("PPI::Statement::Package")
86 2 13 if $statement->isa("PPI::Statement::Include") and $statement->type ne "require"
89 1 12 if $statement->isa("PPI::Statement::Variable") and $statement->type eq "our"