Branch Coverage

blib/lib/Perl/Critic.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
91 2726 2 @_ >= 2 ? :
92 4 2724 ref $self eq 'HASH' ? :
93 2 2726 unless defined $source_code
96 0 2726 &blessed($source_code) && $source_code->isa('Perl::Critic::Document') ? :
104 2 2724 if (0 == $self->policies)
120 2721 3 unless ($self->config->force)
133 0 2724 if (@violations and my $top = $self->config->top)
134 0 0 @violations < $top ? :
149 10 6981 unless $policy->prepare_to_scan_document($doc)
152 0 6981 if defined $maximum_violations and $maximum_violations == 0
159 663 9381 if ($type eq 'PPI::Document') { }
163 4176 5205 unless $doc->find($type)
178 133 3038 if ($doc->line_is_disabled_for_policy($line, $policy))
184 37 3001 if defined $maximum_violations and @violations >= $maximum_violations