Branch Coverage

blib/lib/Perl/Critic/Annotation.pm
Criterion Covered Total %
branch 30 38 78.9


line true false branch
54 55 47 %disabled_policies ? :
62 102 0 $parent ? :
66 3 99 if ($annotation_element =~ /\A [#]!/msx)
73 45 54 if (_is_single_line_annotation_on_simple_statement($annotation_element))
81 20 34 if (ref $parent eq "PPI::Structure::Block")
82 20 0 if (ref $grandparent eq "PPI::Statement::Compound" or ref $grandparent eq "PPI::Statement::Sub")
84 15 5 if ($parent->logical_line_number == $annotation_line)
103 13 336 if $esib->isa("PPI::Token::Comment") and $esib =~ /$use_critic/
109 3 36 if ($end->isa("PPI::Statement::End") and my $kid = $end->child(0))
114 0 11 if $esib->isa("PPI::Token::Comment") and $esib->content =~ /$use_critic/
150 8 0 if $self->{'_disabled_policies'}{$policy_name}
151 0 0 if $self->disables_all_policies
167 13 0 if $line_number >= $effective_range->[0] and $line_number <= $effective_range->[$LAST_ELEMENT]
181 42 57 unless my $sib = $annotation_element->sprevious_sibling
186 44 13 if $sib->logical_line_number == $annotation_line
194 13 0 if ($sib->isa("PPI::Node") and $sib->logical_line_number < $annotation_line)
202 1 12 if ($neighbor and $neighbor->logical_line_number == $annotation_line)
240 55 47 if (my($patterns_string) = $annotation_element =~ /$no_critic/)
258 14 41 unless (@disabled_policy_names)