File Coverage

blib/lib/URI/exasol.pm
Criterion Covered Total %
statement 9 9 100.0
branch 2 2 100.0
condition 4 6 66.6
subroutine 3 3 100.0
pod 1 1 100.0
total 19 21 90.4


line stmt bran cond sub pod time code
1             package URI::exasol;
2 2     2   2494 use base 'URI::_odbc';
  2         4  
  2         457  
3             our $VERSION = '0.19';
4              
5 21     21 1 6530 sub default_port { 8563 }
6              
7             sub _dbi_param_map {
8 20     20   61 my $self = shift;
9 20         39 my $host = $self->host;
10 20         386 my $port = $self->_port;
11              
12             # Just return the DSN if no host or port.
13 20 100 66     293 return [ DSN => scalar $self->dbname ] unless $host || $port;
14              
15             return (
16 9   66     39 [ EXAHOST => $host ],
17             [ EXAPORT => $port || $self->default_port ],
18             );
19             }
20              
21             1;