| 1 | package Schedule::Easing::Block; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 2 | ▶ | use parent qw/Schedule::Easing::Ease/; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 2 | our $VERSION='0.1.5'; | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 8 | ▶ | sub _default_keys { | ||||||||||||||||||
|
Subroutine
_default_keys: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 8 | my ($self)=@_; | |||||||||||||||||||
| 11 | return ( | ||||||||||||||||||||
| 12 | 8 | $self->SUPER::_default_keys(), | |||||||||||||||||||
| 13 | ); | ||||||||||||||||||||
| 14 | } | ||||||||||||||||||||
| 15 | 8 | ▶ | sub _default { | ||||||||||||||||||
|
Subroutine
_default: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 8 | my ($self)=@_; | |||||||||||||||||||
| 17 | return ( | ||||||||||||||||||||
| 18 | 8 | $self->SUPER::_default(), | |||||||||||||||||||
| 19 | match=>qr/.*/, | ||||||||||||||||||||
| 20 | ); | ||||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 8 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=11.6
Pod
undocumented
| |||||||||||||||||||||
| 24 | 8 | my ($ref,%opt)=@_; | |||||||||||||||||||
| 25 | 8 | ▶ | my $class=ref($ref)||$ref; | ||||||||||||||||||
|
Condition33%1/3
ref $ref || $ref
MC/DC0%0/2
ref $ref || $ref
ref $ref
$ref
Truth table33%1/3
A || B
A= ref $refB= $ref
| |||||||||||||||||||||
| 26 | my %self=( | ||||||||||||||||||||
| 27 | type =>'block', | ||||||||||||||||||||
| 28 | $class->_default(), | ||||||||||||||||||||
| 29 | (ref($ref)?%$ref:()), | ||||||||||||||||||||
| 30 | 8 | ▶ | map {$_=>$opt{$_}} grep {defined($opt{$_})} $class->_default_keys() | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 31 | ); | ||||||||||||||||||||
| 32 | 8 | return bless(\%self,$class)->validate()->init(); | |||||||||||||||||||
| 33 | } | ||||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | 2 | ▶ | sub includes { | ||||||||||||||||||
|
Subroutine
includes: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 36 | 2 | my ($self)=@_; | |||||||||||||||||||
| 37 | 2 | return 0; | |||||||||||||||||||
| 38 | } | ||||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | 9 | ▶ | sub schedule { | ||||||||||||||||||
|
Subroutine
schedule: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 41 | 9 | my ($self)=@_; | |||||||||||||||||||
| 42 | 9 | return; | |||||||||||||||||||
| 43 | } | ||||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | 2 | 1; | |||||||||||||||||||