Branch Coverage

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


line true false branch
38 84 65 if $CACHE{$md5}
43 0 65 unless my $document = "PPI::Document"->new(\$content)
86 0 53 unless $package_stmts
94 197 2 if ($node->isa("PPI::Statement") and not $node->isa("PPI::Statement::End") and not $node->isa("PPI::Statement::Data"))
98 20 177 if ($node->isa("PPI::Statement::Variable"))
99 6 14 grep({$_ eq $variable;} $node->variables) ? :
103 3 174 if grep {my $child = $_;
106 4 10 if $child->canonical eq "$sigil${_}::$varname"
14 663 if $child->isa("PPI::Token::Symbol")
115 0 53 unless defined $rv