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