blib/lib/App/PerlNitpick/Rule/RemoveUnusedImport.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 9 | 16 | 56.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
68 | 5 | 0 | 4 | $el->parent->isa("PPI::Statement::Include") and !$el->sprevious_sibling || $el->sprevious_sibling eq 'use' |
70 | 4 | 0 | 1 | $el =~ /::/ and is_function_call($el) |
line | l | !l | condition |
---|---|---|---|
92 | 2 | 0 | $elem->find(sub { |
112 | 0 | 4 | $imported{$w} //= [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
68 | 2 | 2 | 0 | !$el->sprevious_sibling || $el->sprevious_sibling eq 'use' |
96 | 0 | 0 | 2 | $included_module =~ /\A[a-z0-9:]+\Z/ or $is_special{"$included_module"} |