Branch Coverage

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


line true false branch
50 0 10 unless my $name = $elem->name
60 2 8 if $score < $self->{'_info_level'}
72 1 7 $score >= $self->{'_warn_level'} ? :
79 134 93 unless $elem->can('schildren')
85 14 203 if ($child->isa('PPI::Structure::Given') or $child->isa('PPI::Structure::Condition') or $child->isa('PPI::Structure::For')) { }
1 399 elsif ($child->isa('PPI::Statement::Break') and not $self->is_return_statement($child)) { }
90 10 4 if ($self->nesting_increase($child->parent)) { }
112 7 3 if ($elems)
118 1 5 if ($i > 0 and $ops[$i - 1] eq $ops[$i])
139 18 213 if $child->isa('PPI::Statement::Compound')
140 2 211 if $child->isa('PPI::Statement::Given')
142 1 210 if $child->isa('PPI::Statement') and $child->find(sub {