Branch Coverage

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


line true false branch
110 0 6197 unless my $Element = $self->schild($p)
113 667 5530 if ($Element->isa("PPI::Token::Label"))
114 333 334 unless $Element = $self->schild(++$p)
119 1401 4463 if ($content =~ /^for(?:each)?\z/)
120 301 1100 unless $Element = $self->schild(++$p)
121 963 137 if ($Element->isa("PPI::Token"))
122 822 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"))
131 4309 154 if $Element->isa("PPI::Token::Word")
132 154 0 if $Element->isa("PPI::Structure::Block")
156 0 0 unless my $type = $self->type
159 0 0 if ($type eq 'if') { }
0 0 elsif ($type eq 'while') { }
162 0 0 unless my $child = $self->schild(-1)
163 0 0 unless $child->isa("PPI::Structure")
164 0 0 unless $child->braces eq "{}"
165 0 0 unless $child->_complete