lib/Schedule/Easing/Pass.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/Block.pm ↑ Summary
1 package Schedule::Easing::Pass;
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 4 ▶sub _default_keys {
Subroutine _default_keys: called CC=1 SCAR=0.0
10 4 my ($self)=@_;
11 return (
12 4 $self->SUPER::_default_keys(),
13 );
14 }
15 4 ▶sub _default {
Subroutine _default: called CC=1 SCAR=0.0
16 4 my ($self)=@_;
17 return (
18 4 $self->SUPER::_default(),
19 match=>qr/.*/,
20 );
21 }
22  
23 4 ▶sub new {
Subroutine new: called CC=3 SCAR=11.6
Pod undocumented
24 4 my ($ref,%opt)=@_;
25 4 ▶ my $class=ref($ref)||$ref;
Condition33%1/3
ref $ref || $ref
l!l&&r!l&&!r
040
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 =>'pass',
28 $class->_default(),
29 (ref($ref)?%$ref:()),
30 4 ▶ map {$_=>$opt{$_}} grep {defined($opt{$_})} $class->_default_keys()
Branch: 1 branch
BranchTrueFalseTotal
ref $ref ? : 0 4 4
31 );
32 4 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 1;
38 }
39  
40 1 ▶sub schedule {
Subroutine schedule: called CC=1 SCAR=0.0
Pod undocumented
41 1 my ($self)=@_;
42 1 return 0;
43 }
44  
45 2 1;
« lib/Schedule/Easing/Block.pm ↑ Summary