File Coverage

blib/lib/URI/_odbc.pm
Criterion Covered Total %
statement 9 9 100.0
branch 2 2 100.0
condition 5 6 83.3
subroutine 3 3 100.0
pod 0 1 0.0
total 19 21 90.4


line stmt bran cond sub pod time code
1             package URI::_odbc;
2 3     3   21 use base 'URI::_db';
  3         5  
  3         576  
3             our $VERSION = '0.19';
4              
5 28     28 0 63 sub dbi_driver { 'ODBC' }
6              
7             sub _dbi_param_map {
8 60     60   184 my $self = shift;
9 60         124 my $host = $self->host;
10 60         1370 my $port = $self->_port;
11              
12             # Just return the DSN if no host or port.
13 60 100 66     812 return [ DSN => scalar $self->dbname ] unless $host || $port;
14              
15             return (
16 40   100     145 [ Server => $host ],
17             [ Port => $port || $self->default_port ],
18             [ Database => scalar $self->dbname ],
19             );
20             }
21              
22             1;