Branch Coverage

blib/lib/Perl/PrereqScanner/Scanner/Moose.pm
Criterion Covered Total %
branch 31 34 91.1


line true false branch
43 3 262 unless $ppi_doc->find("PPI::Statement")
47 483 45 unless $_->isa("PPI::Structure::Constructor")
96 36 if (grep {$_->isa('PPI::Structure::List') unless $_->isa('PPI::Structure::Constructor');} @$hunk) { }
51 60 36 if ($hunkdata[1]->isa("PPI::Structure::List"))
53 0 60 unless @hunkdata
56 60 36 if ($hunkdata[0]->isa("PPI::Statement::Expression"))
58 0 60 unless @hunkdata
65 180 492 if ($elem->isa("PPI::Token::Quote") or $elem->isa("PPI::Token::QuoteLike"))
67 36 144 if (defined $pkg)
76 87 405 if ($pkg and $elem->isa("PPI::Structure::Constructor"))
79 87 147 if ($subelem->isa("PPI::Statement"))
83 81 387 if ($code->isa("PPI::Token::Word") and $code->literal eq "-version")
88 27 213 if ($found_ver and $code->isa('PPI::Token::Quote') || $code->isa('PPI::Token::QuoteLike') || $code->isa('PPI::Token::Number'))
97 0 87 if ($found_ver and not $done)
104 6 81 unless ($done)
113 57 39 if ($pkg and not $done)
121 84 30 unless $_->isa("PPI::Token::Quote")