Branch Coverage

blib/lib/Perl/Critic.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
89 87 2 @_ >= 2 ? :
90 4 85 ref $self eq 'HASH' ? :
91 2 87 unless defined $source_code
94 1 86 builtin::blessed($source_code) && $source_code->isa('Perl::Critic::Document') ? :
102 2 85 if (0 == $self->policies)
118 82 3 unless ($self->config->force)
131 0 85 if (@violations and my $top = $self->config->top)
132 0 0 @violations < $top ? :
147 4 4490 unless $policy->prepare_to_scan_document($doc)
150 0 4490 if defined $maximum_violations and $maximum_violations == 0
157 494 5455 if ($type eq 'PPI::Document') { }
161 2804 2651 unless $doc->find($type)
176 107 159 if ($doc->line_is_disabled_for_policy($line, $policy))
182 11 148 if defined $maximum_violations and @violations >= $maximum_violations