Branch Coverage

blib/lib/Perl/Critic/Policy/CognitiveComplexity/ProhibitExcessCognitiveComplexity.pm
Criterion Covered Total %
branch 27 28 96.4


line true false branch
50 0 12 unless my $name = $elem->name
61 2 10 if $score < $self->{'_info_level'}
73 1 9 $score >= $self->{'_warn_level'} ? :
80 166 118 unless $elem->can('schildren')
86 15 257 if ($child->isa('PPI::Structure::Given') or $child->isa('PPI::Structure::Condition') or $child->isa('PPI::Structure::For') or $self->_is_foreach_statement($child)) { }
1 504 elsif ($child->isa('PPI::Statement::Break') and not $self->_is_return_statement($child)) { }
92 11 4 if ($self->_nesting_increase($child->parent)) { }
114 9 3 if ($elems)
120 2 5 if ($i > 0 and $ops[$i - 1] eq $ops[$i])
133 1 11 if ($sub->find(sub {
135 42 556 if $_[1]->isa('PPI::Token::Word')
160 20 267 if $child->isa('PPI::Statement::Compound')
161 2 265 if $child->isa('PPI::Statement::Given')
163 1 264 if $child->isa('PPI::Statement') and $child->find(sub {