Pegex/Tree/Wrap.pm

filter: Statementstmt 100% 11 / 11 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 2 / 2 totaltotal 100% 20 / 20 CC 3 SCAR 5.9
CC
3
Cov
100%
gotrule
2.0
final
2.0
BEGIN
1.0
CRAP 1.8
« Pegex/Tree.pm ↑ Summary Pegex/Pegex/Grammar.pm »
1 package Pegex::Tree::Wrap;
2 12 ▶use Pegex::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 12 extends 'Pegex::Receiver';
4  
5 141 ▶sub gotrule {
Subroutine gotrule: called CC=2 SCAR=6.9
Pod documented
6 141 my $self = shift;
7 141 ▶ @_ || return ();
Branch: 1 branch
BranchTrueFalseTotal
@_ or return () 103 38 141
8 103 return {$self->{parser}{rule} => $_[0]}
9 }
10  
11 35 ▶sub final {
Subroutine final: called CC=2 SCAR=6.9
Pod documented
12 35 my $self = shift;
13 35 ▶ return(shift) if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 32 3 35
14 3 return {$self->{parser}{rule} => []}
15 }
16  
17 12 1;
« Pegex/Tree.pm ↑ Summary Pegex/Pegex/Grammar.pm »