Mapper/Class.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond 40.0% 2 / 5 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 71.4% 20 / 28 CC 4 SCAR 11.9
CC
4
Cov
80%
new
5.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.3
« Mapper/Adapter/DBI.pm ↑ Summary Mapper/Data.pm »
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
BranchTrueFalseTotal
if $args and ref $args ne "HASH" 0 4 4
Condition33%1/3
$args and ref $args ne "HASH"
!ll&&!rl&&r
400
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"
ABresult
0X0
100
111
9 4 ▶ bless $args || {}, $class;
Condition50%1/2
$args || {}
l!l
04
MC/DC0%0/1
$args || {}
$args
Truth table50%1/2
A
A= $args
Aresult
11
00
10 }
11  
12 3 !!1;
« Mapper/Adapter/DBI.pm ↑ Summary Mapper/Data.pm »