Branch Coverage

blib/lib/PPIx/DocumentName.pm
Criterion Covered Total %
branch 25 34 73.5


line true false branch
21 0 3 if ($INC{'Log/Contextual.pm'}) { }
37 2 2 if (defined $args{'-api'})
38 1 1 if ($args{'-api'} != 0 and $args{'-api'} != 1)
41 0 1 if ($] < 5.01) { }
56 0 61 if ($] < 5.01) { }
58 0 0 unless defined $api
61 18 43 if defined $hh and not defined $api
63 21 40 unless defined $api
93 8 14 unless ($pkg_node)
98 4 4 1 == $api ? :
100 0 14 unless ($pkg_node->namespace)
102 0 0 1 == $api ? :
105 6 8 1 == $api ? :
119 188 8 unless $maybe->isa('PPI::Token::Comment')
121 8 0 if ($maybe->content =~ /$regex/x)
134 18 8 unless $content
136 4 22 1 == $api && defined $content ? :