Branch Coverage

blib/lib/Perl/Critic/Violation.pm
Criterion Covered Total %
branch 25 30 83.3


line true false branch
45 1 284 if (@_ != $CONSTRUCTOR_ARG_COUNT)
49 4 280 if (eval {
54 1 283 unless (eval {
75 219 64 $top->can('filename') ? :
92 85 0 unless ref $_[0]
93 56 29 unless wantarray
98 0 47 unless $Perl::Critic::Violation::a->[1] <=> $Perl::Critic::Violation::b->[1]
107 1 0 unless ref $_[0]
108 0 1 unless wantarray
164 3 4 unless ($diagnostics{$policy})
189 20 8 unless ($expl)
192 2 26 if (ref $expl eq "ARRAY")
193 1 1 @{$expl;} > 1 ? :
307 0 283 if $inx > @lines
317 190 382 if not defined $_ or ref $_