blib/lib/Qudo/Driver/DBI/DBD.pm

filter: Statementstmt 53.8% 7 / 13 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 42.8% 9 / 21 CC 3 SCAR 20.3
CC
3
Cov
41%
new
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 7.6
« blib/lib/Qudo/Manager.pm ↑ Summary blib/lib/Qudo/Worker.pm »
1 package Qudo::Driver::DBI::DBD;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 sub new {
6 0 ▶ my ($class, $dbd_type) =@_;
Subroutine new: not called CC=3 SCAR=24.8
Pod undocumented
7 0 ▶ die 'No Driver' unless $dbd_type;
Branch: 1 branch
BranchTrueFalseTotal
unless $dbd_type 0 0 0
8  
9 0 my $subclass = join '::', $class, $dbd_type;
10 0 eval "use $subclass"; ## no critic
11 0 ▶ die $@ if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 0 0
12 0 bless {}, $subclass;
13 }
14  
15 1 1;
16  
« blib/lib/Qudo/Manager.pm ↑ Summary blib/lib/Qudo/Worker.pm »