Branch Coverage

lib/PPIx/Element/Sub.pm
Criterion Covered Total %
branch 18 18 100.0


line true false branch
22 14 94 if $element->isa('PPI::Statement::Sub')
25 18 76 unless $element->can('parent') and defined(my $parent = $element->parent)
35 16 65 unless $element->can('parent') and defined(my $parent = $element->parent)
39 1 64 unless $parent->can('children')
48 145 55 unless ($seen_self)
49 61 84 if &refaddr($sibling) eq $own_addr
55 7 48 if $sibling->isa('PPI::Statement::Sub')
59 2 46 if ($sibling->can('find_first') and my $result = $sibling->find_first('PPI::Statement::Sub'))
75 7 9 if (my $parent = identify_sub($element))