blib/lib/Schedule/Easing/Block.pm

filter: Statementstmt 100% 31 / 31 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 10 / 10 Podpod 0.0% 0 / 5 totaltotal 81.1% 43 / 53 CC 3 SCAR 4.4
CC
3
Cov
92%
new
3.2
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« blib/lib/Schedule/Easing/Function.pm ↑ Summary Build »
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.4';
8  
9 sub _default_keys {
10 8 ▶ my ($self)=@_;
Subroutine _default_keys: called CC=1 SCAR=0.0
11 return (
12 8 $self->SUPER::_default_keys(),
13 );
14 }
15 sub _default {
16 8 ▶ my ($self)=@_;
Subroutine _default: called CC=1 SCAR=0.0
17 return (
18 8 $self->SUPER::_default(),
19 match=>qr/.*/,
20 );
21 }
22  
23 sub new {
24 8 ▶ my ($ref,%opt)=@_;
Subroutine new: called CC=3 SCAR=11.6
Pod undocumented
25 8 ▶ my $class=ref($ref)||$ref;
Condition33%1/3
ref $ref || $ref
l!l&&r!l&&!r
080
MC/DC0%0/2
ref $ref || $ref
ref $ref $ref
Truth table33%1/3
A || B
A= ref $refB= $ref
ABresult
1X1
011
000
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
BranchTrueFalseTotal
ref $ref ? : 0 8 8
31 );
32 8 return bless(\%self,$class)->validate()->init();
33 }
34  
35 sub validate {
36 8 ▶ my ($self)=@_;
Subroutine validate: called CC=1 SCAR=0.0
Pod undocumented
37 8 $self->SUPER::validate();
38 8 return $self;
39 }
40  
41 sub init {
42 8 ▶ my ($self)=@_;
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
43 8 $self->SUPER::init();
44 8 return $self;
45 }
46  
47 sub includes {
48 2 ▶ my ($self)=@_;
Subroutine includes: called CC=1 SCAR=0.0
Pod undocumented
49 2 return 0;
50 }
51  
52 sub schedule {
53 9 ▶ my ($self)=@_;
Subroutine schedule: called CC=1 SCAR=0.0
Pod undocumented
54 9 return;
55 }
56  
57 2 1;
« blib/lib/Schedule/Easing/Function.pm ↑ Summary Build »