| blib/lib/Perl/Critic/Policy/Modules/RequireExplicitPackage.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 15 | 18 | 83.3 |
| line | true | false | branch |
|---|---|---|---|
| 55 | 29 | 2 | $package_stmnt ? : |
| 59 | 2 | 29 | unless $stmnts_ref |
| 63 | 0 | 29 | unless @non_packages |
| 71 | 3 | 257 | if (not defined $package_line or $stmnt_line < $package_line) |
| 82 | 0 | 289 | unless $elem |
| 85 | 29 | 260 | if $elem->isa("PPI::Statement::Package") |
| 88 | 59 | 201 | if ($elem->isa("PPI::Statement::Include")) |
| 89 | 57 | 2 | if (my $module = $elem->module) |
| 90 | 0 | 57 | if $self->{'_allow_import_of'}{$module} |