Branch Coverage

blib/lib/CPANfile/Parse/PPI.pm
Criterion Covered Total %
branch 52 58 89.6


line true false branch
45 3 9 if grep {$_ eq "-strict";} @_
62 432 3345 if ($_[1]->isa("PPI::Token::Word"))
69 0 31 unless $requires
75 0 31 unless $requires
80 0 304 unless $required
91 2 302 if ($type eq "mirror" or $type eq "osname")
92 0 2 if $value
95 2 302 if (-1 != index($type, "_"))
97 1 1 if $stage eq "author"
103 2 302 unless $value
105 300 2 $value->can('string') ? :
106 300 2 $can_string ? :
112 6 296 if ($value->isa("PPI::Token::Symbol") or $prereq =~ /\A[^A-Za-z]/)
116 3 3 unless $strict
117 3 3 if $strict
127 0 593 unless $parent_node
128 158 435 if $parent_node->isa("PPI::Document")
130 139 296 if ($parent_node->isa("PPI::Structure::Block"))
139 140 21 if $token->isa("PPI::Token::Word")
143 138 1 if ($on_feature) { }
145 106 32 $word->can('string') ? :
164 69 296 unless $sibling
166 69 227 unless ($sibling->isa("PPI::Token::Operator"))
169 5 222 unless $value
171 195 27 $value->can('string') ? :
192 5 299 if $type ne "requires" and $type ne "recommends"
202 8 1100 if ($content eq "mirror" or $content eq "dist")
205 8 0 $value_node->can('string') ? :
210 32 1076 if $delete