Branch Coverage

blib/lib/File/PackageIndexer.pm
Criterion Covered Total %
branch 50 58 86.2


line true false branch
33 8 77 unless defined $def_pkg
37 85 0 unless (ref $doc and $doc->isa('PPI::Node'))
40 0 85 unless (ref $doc)
55 6053 858 unless $_[1]->isa('PPI::Statement')
62 15 843 if ($class eq 'PPI::Statement::Scheduled') { }
61 782 elsif ($class eq 'PPI::Statement::Sub') { }
74 708 elsif ($class eq 'PPI::Statement::Package') { }
87 621 elsif ($class eq 'PPI::Statement::Include') { }
85 536 elsif ($statement->find_any(sub { $_[1]->content eq '@ISA' if $_[1]->class eq 'PPI::Token::Symbol'; } )) { }
72 22 39 unless (defined $curpkg)
83 1222 10351 if $_[1]->class eq 'PPI::Token::Symbol'
98 9 7439 if ($callee and $methodname =~ /^(?:mk_(?:[rw]o_)?accessors)$/)
100 3 6 if ($callee eq '__PACKAGE__')
101 3 0 defined $curpkg ? :
105 9 0 if (defined $args and $args->isa('PPI::Structure::List'))
107 8 1 if (@$list)
124 10 91 if ($$pkg{'isa_cleared_at_runtime'})
131 85 16 if ($self->clean)
150 34 101 if exists $$pkgs{$p_name}
170 3 84 if $statement->type ne 'use' or not defined $statement->module
175 31 53 if ($module =~ /^Class::XSAccessor(?:::Array)?$/) { }
44 9 elsif ($module =~ /^(?:base|parent)$/) { }
198 0 14 if @results == 1
203 0 58 unless (exists $$pkg{'begin_isa'})
214 29 8 if (not exists $$res{$pkgname}) { }
222 4 4 if ($$inpkg{'isa_cleared_at_compiletime'}) { }
231 2 6 if ($$inpkg{'isa_cleared_at_runtime'}) { }
244 2 6 if ($$pkg{'isa_cleared_at_runtime'})
272 0 0 unless @results