| 1 | package Data::Mapper::Class; | ||||||||||||||||||||||||||||
| 2 | 3 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 3 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 3 | ▶ | use Carp (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 4 | ▶ | sub new { | ||||||||||||||||||||||||||
|
Subroutine
new: called CC=4 SCAR=16.1
Pod
undocumented
| |||||||||||||||||||||||||||||
| 7 | 4 | my ($class, $args) = @_; | |||||||||||||||||||||||||||
| 8 | 4 | ▶ | Carp::croak '$args must be a HashRef' if $args && ref $args ne 'HASH'; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$args and ref $args ne "HASH"
MC/DC0%0/2
$args and ref $args ne "HASH"
$args
ref $args ne "HASH"
Truth table33%1/3
A and B
A= $argsB= ref $args ne "HASH"
| |||||||||||||||||||||||||||||
| 9 | 4 | ▶ | bless $args || {}, $class; | ||||||||||||||||||||||||||
|
Condition50%1/2
$args || {}
MC/DC0%0/1
$args || {}
$args
Truth table50%1/2
A
A= $args
| |||||||||||||||||||||||||||||
| 10 | } | ||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 3 | !!1; | |||||||||||||||||||||||||||