Branch Coverage

blib/lib/Perl/ToPerl6/Annotation.pm
Criterion Covered Total %
branch 26 38 68.4


line true false branch
54 11 2 %disabled_transformers ? :
62 13 0 $parent ? :
66 0 13 if ($annotation_element =~ /\A [#]!/msx)
73 1 12 if (_is_single_line_annotation_on_simple_statement($annotation_element))
81 1 11 if (ref $parent eq 'PPI::Structure::Block')
82 1 0 if (ref $grandparent eq 'PPI::Statement::Compound' or ref $grandparent eq 'PPI::Statement::Sub')
84 0 1 if ($parent->logical_line_number == $annotation_line)
103 8 16 if $esib->isa('PPI::Token::Comment') and $esib =~ /$use_mogrify/
109 1 11 if ($end->isa('PPI::Statement::End') and my $kid = $end->child(0))
114 0 3 if $esib->isa('PPI::Token::Comment') and $esib->content =~ /$use_mogrify/
150 8 0 if $self->{'_disabled_transformers'}{$transformer_name}
151 0 0 if $self->disables_all_transformers
167 13 0 if $line_number >= $effective_range->[0] and $line_number <= $effective_range->[$LAST_ELEMENT]
181 12 1 unless my $sib = $annotation_element->sprevious_sibling
186 0 1 if $sib->logical_line_number == $annotation_line
194 1 0 if ($sib->isa('PPI::Node') and $sib->logical_line_number < $annotation_line)
202 1 0 if ($neighbor and $neighbor->logical_line_number == $annotation_line)
240 11 2 if (my($patterns_string) = $annotation_element =~ /$no_mogrify/)
259 2 9 unless (@disabled_transformer_names)