line |
true |
false |
branch |
32
|
35 |
9 |
if $doc->find_first(\&Perl::Critic::Policy::Modules::RequireVersionVar::_is_version_declaration)
|
41
|
29 |
624 |
if _is_our_version(@_)
|
42
|
2 |
622 |
if _is_vars_version(@_)
|
43
|
1 |
621 |
if _is_package_version(@_)
|
44
|
2 |
619 |
if _is_readonly_version(@_)
|
45
|
1 |
618 |
if _is_package_argument_version(@_)
|
53
|
622 |
31 |
unless $elem->isa("PPI::Statement::Variable")
|
54
|
1 |
30 |
unless $elem->type eq "our"
|
62
|
567 |
57 |
unless $elem->isa("PPI::Statement::Include")
|
63
|
55 |
2 |
unless $elem->pragma eq "vars"
|
71
|
611 |
11 |
unless $elem->isa("PPI::Token::Symbol")
|
88
|
611 |
10 |
unless $elem->isa("PPI::Token::Symbol")
|
89
|
6 |
4 |
unless $elem =~ / \A \$VERSION \z /msx
|
92
|
2 |
2 |
if $psib ne "our"
|
102
|
589 |
30 |
unless $elem->isa("PPI::Statement::Package")
|
106
|
0 |
30 |
unless my $ver = $elem->schild(2)
|