Branch Coverage

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


line true false branch
110 0 6201 unless my $Element = $self->schild($p)
113 660 5541 if ($Element->isa("PPI::Token::Label"))
114 327 333 unless $Element = $self->schild(++$p)
119 1410 4464 if ($content =~ /^for(?:each)?\z/)
120 303 1107 unless $Element = $self->schild(++$p)
121 970 137 if ($Element->isa("PPI::Token"))
122 829 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 4311 153 if $Element->isa("PPI::Token::Word")
132 153 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