Branch Coverage

blib/lib/Perl/Critic/Policy/Modules/RequireExplicitPackage.pm
Criterion Covered Total %
branch 16 20 80.0


line true false branch
55 29 3 $package_stmnt ? :
59 2 30 unless $stmnts_ref
63 0 30 unless @non_packages
71 5 257 if (not defined $package_line or $stmnt_line < $package_line)
82 0 291 unless $elem
85 29 262 if $elem->isa("PPI::Statement::Package")
88 59 203 if ($elem->isa("PPI::Statement::Include"))
89 57 2 if (my $module = $elem->module) { }
0 2 elsif ($elem->version) { }
90 0 57 if $self->{'_allow_import_of'}{$module}