| 1 | 10 | ▶ | use utf8; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 2 | 10 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 10 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 10 | ▶ | no warnings qw(uninitialized); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | package XML::Pastor::Meta; | ||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 10 | ▶ | use Class::Accessor; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 10 | ▶ | use Class::Data::Inheritable; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 10 | our @ISA = qw(Class::Accessor Class::Data::Inheritable); | |||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 10 | XML::Pastor::Meta->mk_classdata('Model'); | |||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | #---------------------------------------------- | ||||||||||||||||||||
| 18 | # Accepts a single parameter or a hash. | ||||||||||||||||||||
| 19 | # If single parameter, then it is taken to be the value. | ||||||||||||||||||||
| 20 | #---------------------------------------------- | ||||||||||||||||||||
| 21 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||
| 22 | 0 | my $proto = shift; | |||||||||||||||||||
| 23 | 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
| |||||||||||||||||||||
| 24 | 0 | my $self = {@_}; | |||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 0 | return bless $self, $class; | |||||||||||||||||||
| 27 | } | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 10 | 1; | |||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | __END__ | ||||||||||||||||||||