Branch Coverage

blib/lib/Perl/Critic/Policy/TooMuchCode/ProhibitUnusedImport.pm
Criterion Covered Total %
branch 20 26 76.9


line true false branch
58 375 74 unless $_[1]->isa("PPI::Token::Word")
63 0 16 unless $elem->find(sub {
66 1 74 if ($el_word->isa("PPI::Token::Symbol"))
78 4 12 if (@to_report)
82 2 4 if (exists $used{"is_" . $import} or exists $used{"to_" . $import} and exists $$moose_types{$imported{$import}[0]})
106 0 17 if $st->schild(0) eq "no"
107 0 17 unless my $expr_qw = $st->find(sub {
110 5 12 if exists $is_ignored->{$included_module}
112 12 0 if (@$expr_qw == 1)
116 0 16 if $w =~ /\A [:\-\+]/x
134 8 8 unless $doc->find("PPI::Token::Symbol")
146 91 5 unless $doc->find($class)
147 0 5 unless my $str = "PPIx::QuoteLike"->new($e)