FigAnim/Point.pm

filter: Statementstmt 50.0% 7 / 14 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 40.9% 9 / 22 CC 2 SCAR 12.5
CC
2
Cov
41%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
« FigAnim/Color.pm ↑ Summary FigAnim/Utils.pm »
1 package Point;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
7 0 my $proto = shift;
8 0 ▶ my $class = ref($proto) || $proto;
Condition0%0/3
ref $proto || $proto
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
9 0 my $self = {};
10  
11 0 $self->{x} = shift;
12 0 $self->{y} = shift;
13  
14 0 bless ($self, $class);
15 0 return $self;
16 }
17  
18  
19  
20 1 1;
« FigAnim/Color.pm ↑ Summary FigAnim/Utils.pm »