Condition Coverage

blib/lib/App/perlimports/Include.pm
Criterion Covered Total %
condition 59 86 68.6


and 3 conditions

line !l l&&!r l&&r condition
197 0 302 420 $word->parent and $word->parent->isa("PPI::Statement::Include")
302 210 210 $word->parent and $word->parent->isa("PPI::Statement::Include") and not $is_function_call || $word->snext_sibling && $word->snext_sibling eq '->'
210 276 23 213 defined $self->_original_imports and &none(sub {
299 26 187 defined $self->_original_imports and &none(sub {
49 58 129 defined $self->_original_imports and &none(sub {
221 294 64 25 $isa_symbol and $word->content =~ /\A(@|%|$)/
223 0 16 9 $previous_sibling and $previous_sibling->content eq "my"
230 294 71 9 $isa_symbol and $self->_is_importable($word->symbol)
294 71 0 $isa_symbol and $word->symbol_type eq "&"
365 0 0 $isa_symbol and $word->symbol_type eq "&" and $self->_is_importable(substr($word->symbol, 1))
41 0 1 $word =~ /^\w/ && $word->previous_token && $word->previous_token eq '{' && $word->previous_token->previous_token && $word->previous_token->previous_token eq '$'
323 1 41 $self->_is_importable("$word") and not $word =~ /^\w/ && $word->previous_token && $word->previous_token eq '{' && $word->previous_token->previous_token && $word->previous_token->previous_token eq '$'
53 270 1 $is_function_call and $self->_is_importable("&" . $word)
53 270 0 $is_function_call and $word =~ /^::\w+/
323 0 0 $is_function_call and $word =~ /^::\w+/ and $self->_is_importable(substr($word, 2))
334 4 42 1 $self->_imports_remain(\%found) and $self->_document->my_own_inspector
46 1 0 $self->_imports_remain(\%found) and $self->_document->my_own_inspector and $self->_document->my_own_inspector->is_exporter
366 4 3 3 defined $self->_original_imports and &any(sub {
424 0 0 0 $self->_include->parent and not $self->_include->parent->isa("PPI::Document")
478 29 3 1 $self->_isa_test_builder_module and @args
32 0 1 $self->_isa_test_builder_module and @args and $args[0] eq "do"
490 29 3 0 $self->_isa_test_builder_module and @args
494 0 0 0 $args[0]->isa("PPI::Structure::List") and $args[0]->braces eq "()"
592 32 0 0 length $statement > 78 and not $self->_isa_test_builder_module

or 2 conditions

line l !l condition
308 0 0 $new->find(sub {

or 3 conditions

line l !l&&r !l&&!r condition
197 210 0 210 $is_function_call || $word->snext_sibling && $word->snext_sibling eq '->'
463 1 0 47 $self->_will_never_export or $self->_is_translatable
1 14 33 $self->_will_never_export or $self->_is_translatable or not @{$self->_imports;}
517 0 0 0 $error or XXX