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   2983 use base 'URI::_odbc';
  2         4  
  2         496  
3             our $VERSION = '0.21';
4              
5 21     21 1 9286 sub default_port { 8563 }
6              
7             sub _dbi_param_map {
8 20     20   80 my $self = shift;
9 20         52 my $host = $self->host;
10 20         555 my $port = $self->_port;
11              
12             # Just return the DSN if no host or port.
13 20 100 66     367 return [ DSN => scalar $self->dbname ] unless $host || $port;
14              
15             return (
16 9   66     47 [ EXAHOST => $host ],
17             [ EXAPORT => $port || $self->default_port ],
18             );
19             }
20              
21             1;