| 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
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 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; | |||||||||||||||||||