DB/Generic.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 2 totaltotal 74.0% 20 / 27 CC 2 SCAR 3.4
CC
2
Cov
89%
build_dsn
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« DB/Registry/Entry.pm ↑ Summary DB/Cache/Entry.pm »
1 package Rose::DB::Generic;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use Rose::DB;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 our $VERSION = '0.11';
8  
9 #
10 # Object methods
11 #
12  
13 sub build_dsn
14 2 ▶{
Subroutine build_dsn: called CC=2 SCAR=7.1
Pod undocumented
15 2 my($self_or_class, %args) = @_;
16  
17 2 my %info;
18  
19 2 ▶ $info{'dbname'} = $args{'db'} || $args{'database'};
Condition33%1/3
$args{'db'} || $args{'database'}
l!l&&r!l&&!r
020
MC/DC0%0/2
$args{'db'} || $args{'database'}
$args{'db'} $args{'database'}
Truth table33%1/3
A || B
A= $args{'db'}B= $args{'database'}
ABresult
1X1
011
000
20 2 $info{'host'} = $args{'host'};
21 2 $info{'port'} = $args{'port'};
22  
23 return
24 "dbi:$args{'dbi_driver'}:" .
25 2 join(';', map { "$_=$info{$_}" } grep { defined $info{$_} }
26 qw(dbname host port));
27 }
28  
29 0 ▶sub last_insertid_from_sth { }
Subroutine last_insertid_from_sth: not called CC=1 SCAR=0.0
Pod undocumented
30  
31 2 1;
32  
33 __END__
« DB/Registry/Entry.pm ↑ Summary DB/Cache/Entry.pm »