Branch Coverage

blib/lib/Perl/PrereqScanner/Scanner/Catalyst.pm
Criterion Covered Total %
branch 25 34 73.5


line true false branch
17 7 0 $catalyst_app_class ? :
21 7 0 defined $appnamespace ? :
41 2 0 if (@$packages == 1)
50 1 5 if ($node->module eq 'Catalyst')
52 0 1 unless $_->isa('PPI::Token::QuoteLike::Words')
61 3 1 unless ($arg =~ /^\-/)
91 0 2 unless $ppi_doc->find('PPI::Statement')
98 3 2 unless $_->isa('PPI::Token::Quote')
102 1 1 if (grep {$_ eq 'Catalyst';} @classes)
110 1 1 if ($inherits_catalyst)
113 4 2 unless $_->isa('PPI::Token::Quote')
122 3 0 if $_->schild(0)->literal eq '__PACKAGE__' or $_->schild(0)->literal eq "$catalyst_app_class"
129 3 1 if $_->schild(0)->isa('PPI::Token::Word') and $_->schild(1)->isa('PPI::Token::Operator') and $_->schild(1)->content eq '->' and $_->schild(2)->isa('PPI::Token::Word')
136 0 1 unless $ppi_doc->find('PPI::Statement')
142 4 0 unless ($arg =~ /^\-/)
159 1 3 if ($attr_content =~ /ActionClass\(([^\)]+)\)/)
164 2 0 unless $node->isa('PPI::Token::QuoteLike::Words')