Easy/DriverPatcher.pm

filter: Statementstmt 76.9% 10 / 13 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod n/a totaltotal 62.5% 15 / 24 CC 4 SCAR 11.0
CC
4
Cov
68%
BEGIN
4.2
_sqlite_serial_column_type
2.0
_mysql_serial_column_type
2.0
CRAP 3.0
« Easy/Helper.pm ↑ Summary Easy/Vendor/mysql.pm »
1 package DBI::Easy;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 6 ▶BEGIN {
Subroutine BEGIN: called CC=4 SCAR=14.5
6 6 ▶ unless (defined &DBD::SQLite::db::serial_column_type) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined &DBD::SQLite::db::serial_column_type) 6 0 6
7 6 *DBD::SQLite::db::serial_column_type = \&_sqlite_serial_column_type;
8 }
9  
10 6 ▶ unless (defined &DBD::mysql::db::serial_column_type) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined &DBD::mysql::db::serial_column_type) 6 0 6
11 6 *DBD::mysql::db::serial_column_type = \&_mysql_serial_column_type;
12 }
13  
14 6 ▶ unless (defined &DBD::Pg::db::serial_column_type) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined &DBD::Pg::db::serial_column_type) 6 0 6
15 6 *DBD::Pg::db::serial_column_type = \&_pg_serial_column_type;
16 }
17
18 }
19  
20 0 ▶sub _sqlite_serial_column_type {
Subroutine _sqlite_serial_column_type: not called CC=1 SCAR=6.9
21 0 return 'autoincrement';
22 }
23  
24 0 ▶sub _mysql_serial_column_type {
Subroutine _mysql_serial_column_type: not called CC=1 SCAR=6.9
25 0 return 'auto_increment';
26 }
27  
28 0 ▶sub _pg_serial_column_type {
Subroutine _pg_serial_column_type: not called CC=1 SCAR=6.9
29 0 return 'serial';
30 }
31  
32 6 1;
« Easy/Helper.pm ↑ Summary Easy/Vendor/mysql.pm »