blib/lib/Pugs/Compiler/Token.pm

filter: Statementstmt 100% 15 / 15 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 91.6% 22 / 24 CC 3 SCAR 7.3
CC
3
Cov
89%
compile
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« blib/lib/Pugs/AST/Expression.pm ↑ Summary blib/lib/Pugs/Grammar/Rule2.pm »
1 package Pugs::Compiler::Token;
2  
3 5 our $VERSION = '0.28';
4  
5 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 5 ▶use base 'Pugs::Compiler::Regex';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 ▶sub compile {
Subroutine compile: called CC=3 SCAR=11.4
Pod documented
11 2 my ( $class, $rule_source, $param ) = @_;
12 2 ▶ $param = ref $param ? { %$param } : {};
Branch: 1 branch
BranchTrueFalseTotal
ref $param ? : 0 2 2
13 $param->{ratchet} = 1
14 2 ▶ unless defined $param->{ratchet};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $param->{"ratchet"} 2 0 2
15 2 $class->SUPER::compile( $rule_source, $param );
16 }
17  
18 5 1;
19  
20 __END__
« blib/lib/Pugs/AST/Expression.pm ↑ Summary blib/lib/Pugs/Grammar/Rule2.pm »