line |
true |
false |
branch |
159
|
45 |
2 |
$self->_export_inspector->has_explicit_exports ? :
|
170
|
10 |
37 |
if $self->module_name eq "Carp"
|
176
|
0 |
727 |
if exists $found{"$word"}
|
180
|
4 |
723 |
unless $self->_imports_remain(\%found)
|
197
|
211 |
512 |
if ($word->parent and $word->parent->isa("PPI::Statement::Include") and not $is_function_call || $word->snext_sibling && $word->snext_sibling eq '->')
|
210
|
129 |
84 |
if (defined $self->_original_imports and &none(sub {
|
221
|
25 |
358 |
if ($isa_symbol and $word->content =~ /\A(@|%|$)/)
|
223
|
9 |
16 |
if ($previous_sibling and $previous_sibling->content eq "my")
|
230
|
9 |
365 |
if ($isa_symbol and $self->_is_importable($word->symbol)) { }
|
|
0 |
365 |
elsif ($isa_symbol and $word->symbol_type eq '&' and $self->_is_importable(substr($word->symbol, 1))) { }
|
|
41 |
324 |
elsif ($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 '$') { }
|
|
1 |
323 |
elsif ($is_function_call and $self->_is_importable('&' . $word)) { }
|
|
0 |
323 |
elsif ($is_function_call and $word =~ /^::\w+/ and $self->_is_importable(substr($word, 2))) { }
|
|
0 |
323 |
elsif ($word->isa('PPI::Token::Label')) { }
|
|
0 |
323 |
elsif ($word->isa('PPI::Token::Prototype')) { }
|
277
|
0 |
0 |
if ($word->content =~ /^(\w+)/)
|
279
|
0 |
0 |
if ($self->_is_importable($label))
|
296
|
0 |
0 |
if (substr($prototype, -1, 1) eq "(")
|
310
|
0 |
0 |
if ($self->_is_importable("$word"))
|
317
|
45 |
6 |
unless ($self->_is_already_imported($found))
|
324
|
43 |
4 |
if ($self->_imports_remain(\%found))
|
326
|
6 |
3 |
if ($self->_is_importable($var))
|
334
|
0 |
43 |
if ($self->_imports_remain(\%found) and $self->_document->my_own_inspector and $self->_document->my_own_inspector->is_exporter)
|
343
|
0 |
0 |
if ($self->_is_importable($symbol))
|
351
|
43 |
4 |
if ($self->_imports_remain(\%found))
|
353
|
1 |
1 |
if ($self->_is_importable($func))
|
364
|
10 |
37 |
if ($self->_export_inspector->has_import_flags)
|
366
|
3 |
7 |
if (defined $self->_original_imports and &any(sub {
|
374
|
18 |
29 |
if ($self->_original_imports)
|
386
|
0 |
50 |
if ($self->_include->type eq "require")
|
387
|
0 |
0 |
unless $self->_is_translatable
|
391
|
1 |
49 |
if $self->_will_never_export
|
393
|
0 |
49 |
if $self->_export_inspector->has_fatal_error
|
395
|
0 |
49 |
if $self->_export_inspector->is_oo_class
|
397
|
1 |
48 |
if $self->_export_inspector->is_moose_class
|
399
|
0 |
48 |
if $self->_export_inspector->uses_moose
|
401
|
0 |
48 |
if $self->_export_inspector->is_moo_class
|
404
|
1 |
47 |
if &any(sub {
|
412
|
0 |
47 |
unless $self->_include->type
|
413
|
47 |
0 |
if $self->_include->type ne "require"
|
414
|
0 |
0 |
if $self->module_name eq "Exporter"
|
424
|
0 |
0 |
if ($self->_include->parent and not $self->_include->parent->isa("PPI::Document"))
|
434
|
0 |
0 |
if ($statement ne "require " . $self->module_name . " ;")
|
452
|
2 |
48 |
if $self->_is_ignored
|
454
|
0 |
48 |
$self->_include->module_version ? :
|
463
|
14 |
33 |
if ($self->_will_never_export or $self->_is_translatable or not @{$self->_imports;})
|
478
|
1 |
3 |
if ($self->_isa_test_builder_module and @args and $args[0] eq "do")
|
490
|
0 |
32 |
if ($self->_isa_test_builder_module and @args) { }
|
494
|
0 |
0 |
if ($args[0]->isa('PPI::Token::Word')) { }
|
|
0 |
0 |
elsif ($args[0]->isa('PPI::Structure::List') and $args[0]->braces eq '()') { }
|
517
|
0 |
0 |
unless ($error or XXX)
|
527
|
0 |
0 |
if $error
|
541
|
0 |
0 |
if ($dumped =~ /^{(.*)}$/)
|
545
|
0 |
0 |
if ($self->_imports)
|
553
|
0 |
0 |
if $_
|
572
|
31 |
1 |
$self->_pad_imports ? :
|
573
|
3 |
29 |
$self->_isa_test_builder_module ? :
|
592
|
0 |
32 |
if (length $statement > 78 and not $self->_isa_test_builder_module)
|
648
|
14 |
33 |
if (_respace_include($orig) eq $b)
|
652
|
29 |
4 |
if $self->_tidy_whitespace
|
660
|
0 |
4 |
$a eq $b ? :
|
692
|
27 |
20 |
if (XXX) { }
|
702
|
20 |
0 |
if (my $inspector = $self->_document->inspector_for($module))
|
709
|
6 |
41 |
if (&any(sub {
|
736
|
11 |
43 |
if ($thing =~ /\A[\$]/) { }
|
|
7 |
36 |
elsif ($thing =~ /\A[\@]/) { }
|
|
7 |
29 |
elsif ($thing =~ /\A[%]/) { }
|