Branch Coverage

blib/lib/Perl/Critic/Policy/CognitiveComplexity/ProhibitExcessCognitiveComplexity.pm
Criterion Covered Total %
branch 19 20 95.0


line true false branch
49 0 7 unless my $name = $elem->name
55 2 5 if $score < $self->{'_info_level'}
66 1 4 $score >= $self->{'_warn_level'} ? :
73 116 78 unless $elem->can('schildren')
79 11 176 if ($child->isa('PPI::Structure::Given') or $child->isa('PPI::Structure::Condition') or $child->isa('PPI::Structure::For')) { }
1 345 elsif ($child->isa('PPI::Statement::Break') and not $self->is_return_statement($child)) { }
84 7 4 if ($self->nesting_increase($child->parent)) { }
111 12 186 if $child->isa('PPI::Statement::Compound')
112 2 184 if $child->isa('PPI::Statement::Given')
114 1 183 if $child->isa('PPI::Statement') and $child->find(sub { $_[1]->content eq 'sub'; } )