line |
true |
false |
branch |
21
|
0 |
9 |
unless defined $ppi
|
32
|
2 |
1131 |
if ref $_[0] eq 'PPI::Statement::Package'
|
33
|
17 |
1114 |
if ref $_[0] eq 'PPI::Statement::Include'
|
34
|
6 |
1108 |
if ref $_[0] eq 'PPI::Statement::Sub'
|
35
|
38 |
1070 |
if ref $_[0] eq 'PPI::Statement'
|
47
|
2 |
61 |
if (ref $thing eq 'PPI::Statement::Package') { }
|
|
17 |
44 |
elsif (ref $thing eq 'PPI::Statement::Include') { }
|
|
6 |
38 |
elsif (ref $thing eq 'PPI::Statement::Sub') { }
|
|
38 |
0 |
elsif (ref $thing eq 'PPI::Statement') { }
|
48
|
0 |
2 |
if ($not_first_one)
|
49
|
0 |
0 |
unless ($cur_pkg->{'name'})
|
59
|
0 |
17 |
if $thing->type eq 'no'
|
60
|
9 |
8 |
if ($thing->pragma) { }
|
|
7 |
1 |
elsif ($thing->module) { }
|
64
|
7 |
0 |
unless ($check_alternate_sub_decls)
|
66
|
5 |
2 |
if grep {$thing->module eq $_;} 'Method::Signatures', 'MooseX::Declare', 'MooseX::Method::Signatures', 'Moose::Role', 'Moose'
|
83
|
3 |
35 |
unless defined $node2
|
88
|
33 |
2 |
if (defined $node2->{'content'})
|
89
|
0 |
33 |
if ($node2->{'content'} =~ /\n/)
|
96
|
17 |
18 |
if ($node1->isa('PPI::Token::Word') and $node1->content eq 'has')
|
104
|
0 |
18 |
if ($node1->isa('PPI::Token::Word') and $node1->content eq 'event')
|
111
|
5 |
4 |
if ($check_alternate_sub_decls)
|
114
|
757 |
129 |
unless $_[1]->isa('PPI::Token::Word')
|
115
|
110 |
19 |
unless $_[1]->content =~ /^(?:func|method|before|after|around|override|augment|class|role)\z/
|
116
|
0 |
19 |
unless $_[1]->next_sibling->isa('PPI::Token::Whitespace')
|
117
|
0 |
19 |
unless my $sib_content = $_[1]->next_sibling->next_sibling->content
|
124
|
0 |
19 |
unless defined $name
|
127
|
4 |
15 |
if ($_[1]->content =~ /(class|role)/)
|
139
|
4 |
5 |
unless ($cur_pkg->{'name'})
|
159
|
1 |
16 |
if ($ma_node2->content =~ /[\n|;]/)
|
168
|
2 |
14 |
if (ref $attrs eq 'ARRAY') { }
|
190
|
1 |
3 |
if ($mpn_cur_pkg->{'name'})
|