blib/lib/URI/_odbc.pm

filter: Statementstmt 100% 11 / 11 Branchbran 100% 2 / 2 Conditioncond 83.3% 5 / 6 MC/DCmcdc 75.0% 3 / 4 Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 88.8% 24 / 27 CC 4 SCAR 11.0
CC
4
Cov
95%
_dbi_param_map
4.0
BEGIN
1.0
dbi_driver
1.0
CRAP 3.0
« blib/lib/URI/exasol.pm ↑ Summary blib/lib/URI/_db.pm »
1 package URI::_odbc;
2 3 ▶use base 'URI::_db';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 our $VERSION = '0.21';
4  
5 29 ▶sub dbi_driver { 'ODBC' }
Subroutine dbi_driver: called CC=1 SCAR=0.0
Pod undocumented
6  
7 sub _dbi_param_map {
8 62 ▶ my $self = shift;
Subroutine _dbi_param_map: called CC=4 SCAR=13.9
9 62 my $host = $self->host;
10 62 my $port = $self->_port;
11  
12 # Just return the DSN if no host or port.
13 62 ▶ return [ DSN => scalar $self->dbname ] unless $host || $port;
Branch: 1 branch
BranchTrueFalseTotal
unless $host or $port 22 40 62
Condition66%2/3
$host or $port
l!l&&r!l&&!r
40022
MC/DC50%1/2
$host or $port
$host $port
Truth table66%2/3
A or B
A= $hostB= $port
ABresult
1X1
011
000
14  
15 return (
16 40 ▶ [ Server => $host ],
Condition100%3/3
$port || $self->default_port
l!l&&r!l&&!r
29101
MC/DC100%2/2
$port || $self->default_port
$port $self->default_port
Truth table100%3/3
A || B
A= $portB= $self->default_port
ABresult
1X1
011
000
17 [ Port => $port || $self->default_port ],
18 [ Database => scalar $self->dbname ],
19 );
20 }
21  
22 3 1;
« blib/lib/URI/exasol.pm ↑ Summary blib/lib/URI/_db.pm »