Branch Coverage

blib/lib/Dist/Zilla/Role/PPI.pm
Criterion Covered Total %
branch 17 20 85.0


line true false branch
38 89 65 if $CACHE{$md5}
43 0 65 unless my $document = "PPI::Document"->new(\$content)
86 0 58 unless $package_stmts
94 214 2 if ($node->isa("PPI::Statement") and not $node->isa("PPI::Statement::End") and not $node->isa("PPI::Statement::Data"))
98 24 190 if ($node->isa("PPI::Statement::Variable"))
99 6 18 grep({$_ eq $variable;} $node->variables) ? :
103 3 187 if grep {my $child = $_;
106 4 11 if $child->canonical eq "$sigil${_}::$varname"
15 716 if $child->isa("PPI::Token::Symbol")
115 0 58 unless defined $rv