Branch Coverage

blib/lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitLongChainsOfMethodCalls.pm
Criterion Covered Total %
branch 17 18 94.4


line true false branch
51 107 254 unless is_ppi_expression_or_generic_statement($elem)
61 67 142 if ($child->isa("PPI::Token::Word") and @children and $children[0]->isa("PPI::Structure::List"))
69 456 542 if ($child->isa('PPI::Token::Word') or $child->isa('PPI::Token::Symbol')) { }
73 404 52 if (@children)
74 231 173 if ($children[0]->isa('PPI::Token::Operator')) { }
133 40 elsif (not $children[0]->isa('PPI::Token::Structure')) { }
75 76 155 if ("->" eq $children[0]->content)
86 8 534 if ($chain_length > $max_chain_length)
101 0 246 if ($chain_length > $max_chain_length)