blib/lib/URI/exasol.pm

filter: Statementstmt 100% 11 / 11 Branchbran 100% 2 / 2 Conditioncond 66.6% 4 / 6 MC/DCmcdc 25.0% 1 / 4 Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 81.4% 22 / 27 CC 4 SCAR 11.1
CC
4
Cov
89%
_dbi_param_map
4.1
BEGIN
1.0
default_port
1.0
CRAP 3.0
« Build ↑ Summary blib/lib/URI/_odbc.pm »
1 package URI::exasol;
2 2 ▶use base 'URI::_odbc';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 our $VERSION = '0.23';
4  
5 21 ▶sub default_port { 8563 }
Subroutine default_port: called CC=1 SCAR=0.0
Pod documented
6  
7 sub _dbi_param_map {
8 20 ▶ my $self = shift;
Subroutine _dbi_param_map: called CC=4 SCAR=14.0
9 20 my $host = $self->host;
10 20 my $port = $self->_port;
11  
12 # Just return the DSN if no host or port.
13 20 ▶ return [ DSN => scalar $self->dbname ] unless $host || $port;
Branch: 1 branch
BranchTrueFalseTotal
unless $host or $port 11 9 20
Condition66%2/3
$host or $port
l!l&&r!l&&!r
9011
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 9 ▶ [ EXAHOST => $host ],
Condition66%2/3
$port || $self->default_port
l!l&&r!l&&!r
630
MC/DC0%0/2
$port || $self->default_port
$port $self->default_port
Truth table66%2/3
A || B
A= $portB= $self->default_port
ABresult
1X1
011
000
17 [ EXAPORT => $port || $self->default_port ],
18 );
19 }
20  
21 2 1;
« Build ↑ Summary blib/lib/URI/_odbc.pm »