Branch Coverage

blib/lib/Perl/Critic/Policy/Modules/RequireExplicitInclusion.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
89 26 2 unless $module_specifications
90 0 2 if $module_specifications =~ / \A \s* \z /msx
103 0 2 if ($module_specifications)
119 1 1 if (my $regex_string = $arguments{'regex_string'}) { }
128 0 1 unless eval {
154 0 28 if (@declared_packages > 1)
194 6 22 if $calls
223 7 21 if $calls
243 18 10 if $symbols
273 15 0 if ($word->content =~ /\A ( .* ) :: [^:]* \z/msx)
289 32 0 if ($symbol->canonical =~ /\A [\$*\@%&] ( .* ) :: [^:]+ \z/msx)
305 34 34 if exists $included_packages->{$package}
306 2 32 if $self->_is_ignored_module($package)
308 2 30 if exists $self->{'_ignore_modules'}{$package}
310 27 2 unless ($call eq "STDIN" or $call eq "STDOUT" or $call eq "STDERR")
324 0 34 if $ignore_hash->{$package}
326 2 32 if (my $ignore_regex_list = $self->{'_ignore_modules_regexes'})