Condition Coverage

blib/lib/Perl/Critic/Policy/TooMuchCode/ProhibitUnusedImport.pm
Criterion Covered Total %
condition 18 28 64.2


and 3 conditions

line !l l&&!r l&&r condition
58 431 16 1 $_[1]->isa("PPI::Token::Symbol") and $_[1]->symbol_type eq "&"
82 7 0 1 exists $used{"to_" . $import} and exists $$moose_types{$imported{$import}[0]}
161 2 0 3 $children[0]->content eq "our" and $children[1]->content eq '@EXPORT' || $children[1]->content eq '@EXPORT_OK'
0 0 3 $children[0]->content eq "our" and $children[1]->content eq '@EXPORT' || $children[1]->content eq '@EXPORT_OK' and $children[2]->content eq "="
0 0 3 $children[0]->content eq "our" and $children[1]->content eq '@EXPORT' || $children[1]->content eq '@EXPORT_OK' and $children[2]->content eq "=" and $children[3]->isa("PPI::Token::QuoteLike::Words")
0 0 3 $children[0]->content eq "our" and $children[1]->content eq '@EXPORT' || $children[1]->content eq '@EXPORT_OK' and $children[2]->content eq "=" and $children[3]->isa("PPI::Token::QuoteLike::Words") and $children[4]->content eq ";"

or 2 conditions

line l !l condition
104 19 1 $elem->find(sub {
118 0 27 $imported->{$w} //= []

or 3 conditions

line l !l&&r !l&&!r condition
82 1 1 7 exists $used{"is_" . $import} or exists $used{"to_" . $import} and exists $$moose_types{$imported{$import}[0]}
161 1 2 0 $children[1]->content eq '@EXPORT' || $children[1]->content eq '@EXPORT_OK'