| 1 | package DTL::Fast::Filter; | ||||||||||||||||||||
| 2 | 69 | ▶ | use strict; use utf8; use warnings FATAL => 'all'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 69 | ▶ | use parent 'DTL::Fast::Entity'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 69 | ▶ | use DTL::Fast::Template; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | sub new | ||||||||||||||||||||
| 8 | { | ||||||||||||||||||||
| 9 | 513 | ▶ | my( $proto, $parameter, %kwargs) = @_; | ||||||||||||||||||
|
Subroutine
new: called CC=4 SCAR=15.0
Pod
undocumented
| |||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 513 | ▶ | $proto = ref $proto || $proto; | ||||||||||||||||||
|
Condition33%1/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 513 | ▶ | $kwargs{'parameter'} = $parameter // []; | ||||||||||||||||||
|
Condition50%1/2
$parameter // []
MC/DC0%0/1
$parameter // []
$parameter
Truth table50%1/2
A
A= $parameter
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | die $proto->get_parse_error("Parameter must be an ARRAY reference") | ||||||||||||||||||||
| 16 | 513 | ▶ | if ref $kwargs{'parameter'} ne 'ARRAY'; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 513 | my $self = $proto->SUPER::new(%kwargs); | |||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | 513 | return $self->parse_parameters(); | |||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 124 | ▶ | sub parse_parameters{return shift;} | ||||||||||||||||||
|
Subroutine
parse_parameters: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | sub filter | ||||||||||||||||||||
| 26 | { | ||||||||||||||||||||
| 27 | 0 | ▶ | my ($self) = @_; | ||||||||||||||||||
|
Subroutine
filter: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 28 | 0 | die sprintf( "filter was not overriden in a subclass %s", ref $self ); | |||||||||||||||||||
| 29 | } | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 69 | 1; | |||||||||||||||||||