| 1 | 10 | ▶ | use 5.006001; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 2 | 10 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 10 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | package Pugs::Compiler::Rule; | ||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 10 | our $VERSION = '0.37'; | |||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 10 | ▶ | use base 'Pugs::Compiler::Regex'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 2 | ▶ | sub compile { | ||||||||||||||||||||||||||
|
Subroutine
compile: called CC=5 SCAR=18.1
Pod
documented
| |||||||||||||||||||||||||||||
| 12 | 2 | my ( $class, $rule_source, $param ) = @_; | |||||||||||||||||||||||||||
| 13 | 2 | ▶ | $param = ref $param ? { %$param } : {}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 14 | $param->{ratchet} = 1 | ||||||||||||||||||||||||||||
| 15 | 2 | ▶ | unless exists $param->{ratchet}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 16 | $param->{sigspace} = 1 | ||||||||||||||||||||||||||||
| 17 | unless exists $param->{sigspace} || | ||||||||||||||||||||||||||||
| 18 | 2 | ▶ | exists $param->{s}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
exists $param->{"sigspace"} or exists $param->{"s"}
MC/DC0%0/2
exists $param->{"sigspace"} or exists $param->{"s"}
exists $param->{"sigspace"}
exists $param->{"s"}
Truth table33%1/3
A or B
A= exists $param->{"sigspace"}B= exists $param->{"s"}
| |||||||||||||||||||||||||||||
| 19 | 2 | $class->SUPER::compile( $rule_source, $param ); | |||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | 10 | 1; | |||||||||||||||||||||||||||
| 23 | __END__ | ||||||||||||||||||||||||||||