Branch Coverage

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


line true false branch
43 3 8 if grep {$_ eq '-strict';} @_
60 409 3183 if ($_[1]->isa('PPI::Token::Word'))
67 0 30 unless $requires
73 0 30 unless $requires
77 0 297 unless $required
84 2 295 if ($type eq 'mirror' or $type eq 'osname')
85 0 2 if $value
88 2 295 if (-1 != index($type, '_'))
90 1 1 if $stage eq 'author'
95 2 295 unless $value
97 293 2 $value->can('string') ? :
98 293 2 $can_string ? :
104 6 289 if ($value->isa('PPI::Token::Symbol') or $prereq =~ /\A[^A-Za-z]/)
108 3 3 unless $strict
109 3 3 if $strict
119 0 579 unless $parent_node
120 158 421 if $parent_node->isa('PPI::Document')
122 132 289 if ($parent_node->isa('PPI::Structure::Block'))
125 133 21 if $_[1]->isa('PPI::Token::Word')
127 1 131 unless $on
132 101 30 $word->can('string') ? :
142 68 289 unless $sibling
144 68 221 unless ($sibling->isa('PPI::Token::Operator'))
147 4 217 unless $value
149 195 22 $value->can('string') ? :
169 3 294 if $type ne 'requires' and $type ne 'recommends'
179 8 1084 if ($content eq 'mirror' or $content eq 'dist')
182 8 0 $value_node->can('string') ? :
187 32 1060 if $delete