Branch Coverage

blib/lib/PPI/Statement/Compound.pm
Criterion Covered Total %
branch 21 38 55.2


line true false branch
110 0 6428 unless my $Element = $self->schild($p)
113 732 5696 if ($Element->isa("PPI::Token::Label"))
114 368 364 unless $Element = $self->schild(++$p)
119 1406 4654 if ($content =~ /^for(?:each)?\z/)
120 302 1104 unless $Element = $self->schild(++$p)
121 967 137 if ($Element->isa("PPI::Token"))
122 826 141 if $Element->content =~ /^(?:my|our|state)\z/
123 115 26 if $Element->isa("PPI::Token::Symbol")
124 26 0 if $Element->isa("PPI::Token::QuoteLike::Words")
126 86 51 if ($Element->isa("PPI::Structure::List"))
134 4470 184 if $Element->isa("PPI::Token::Word")
136 184 0 if $Element->isa("PPI::Structure::Block")
160 0 0 unless my $type = $self->type
163 0 0 if ($type eq 'if') { }
0 0 elsif ($type eq 'while') { }
166 0 0 unless my $child = $self->schild(-1)
167 0 0 unless $child->isa("PPI::Structure")
168 0 0 unless $child->braces eq "{}"
169 0 0 unless $child->_complete