Branch Coverage

blib/lib/Perl/Critic/Policy/Modules/RequireExplicitPackage.pm
Criterion Covered Total %
branch 17 18 94.4


line true false branch
55 37 6 $package_stmnt ? :
59 3 40 unless $stmnts_ref
63 2 38 unless @non_packages
71 16 264 if (not defined $package_line or $stmnt_line < $package_line)
82 0 318 unless $elem
85 37 281 if $elem->isa("PPI::Statement::Package")
88 64 217 if ($elem->isa("PPI::Statement::Include"))
89 62 2 if (my $module = $elem->module)
90 1 61 if $self->{'_allow_import_of'}{$module}