lib/Schedule/Easing/Block.pm

filter: Statementstmt 100% 25 / 25 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 3 totaltotal 81.4% 35 / 43 CC 3 SCAR 5.0
CC
3
Cov
90%
new
3.2
BEGIN
1.0
BEGIN
1.0
CRAP 1.7
« lib/Schedule/Easing/Function.pm ↑ Summary lib/Schedule/Easing/Pass.pm »
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
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 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;
« lib/Schedule/Easing/Function.pm ↑ Summary lib/Schedule/Easing/Pass.pm »