Branch Coverage

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


line true false branch
19 7 0 $catalyst_app_class ? :
23 7 0 defined $appnamespace ? :
43 2 0 if (@$packages == 1)
52 1 5 if ($node->module eq "Catalyst")
54 0 1 unless $_->isa("PPI::Token::QuoteLike::Words")
63 3 1 unless ($arg =~ /^\-/)
93 0 2 unless $ppi_doc->find("PPI::Statement")
100 3 2 unless $_->isa("PPI::Token::Quote")
104 1 1 if (grep {$_ eq "Catalyst";} @classes)
112 1 1 if ($inherits_catalyst)
115 4 2 unless $_->isa("PPI::Token::Quote")
124 3 0 if $_->schild(0)->literal eq "__PACKAGE__" or $_->schild(0)->literal eq "$catalyst_app_class"
131 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")
138 0 1 unless $ppi_doc->find("PPI::Statement")
144 4 0 unless ($arg =~ /^\-/)
161 1 3 if ($attr_content =~ /ActionClass\(([^\)]+)\)/)
166 2 0 unless $node->isa("PPI::Token::QuoteLike::Words")