| 1 | package DTL::Fast::Filter::DefaultIfNone; | ||||||||||||||||||||
| 2 | 2 | ▶ | 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 | 2 | ▶ | use parent 'DTL::Fast::Filter::Default'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 2 | $DTL::Fast::FILTER_HANDLERS{'default_if_none'} = __PACKAGE__; | |||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | #@Override | ||||||||||||||||||||
| 8 | sub filter | ||||||||||||||||||||
| 9 | { | ||||||||||||||||||||
| 10 | 11 | ▶ | my $self = shift; # self | ||||||||||||||||||
|
Subroutine
filter: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||||||||||||
| 11 | 11 | shift; # filter_manager | |||||||||||||||||||
| 12 | 11 | my $value = shift; | |||||||||||||||||||
| 13 | 11 | my $context = shift; | |||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 11 | ▶ | return $value // $self->{'default'}->render($context); | ||||||||||||||||||
|
Condition66%2/3
$value // $self->{"default"}->render($context)
MC/DC0%0/2
$value // $self->{"default"}->render($context)
$value
$self->{"default"}->render($context)
Truth table66%2/3
A // B
A= $valueB= $self->{"default"}->render($context)
| |||||||||||||||||||||
| 16 | } | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 2 | 1; | |||||||||||||||||||