File Coverage

blib/lib/URI/mysql.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 3 33.3
total 14 16 87.5


line stmt bran cond sub pod time code
1             package URI::mysql;
2 2     2   3057 use base 'URI::_db';
  2         6  
  2         501  
3             our $VERSION = '0.21';
4              
5 54     54 1 27570 sub default_port { 3306 }
6 2     2 0 6 sub dbi_driver { 'mysql' }
7 60     60 0 29770 sub canonical_engine { 'mysql' }
8              
9             sub _dbi_param_map {
10 6     6   31 my $self = shift;
11             return (
12 6         22 [ host => scalar $self->host ],
13             [ port => scalar $self->_port ],
14             [ database => scalar $self->dbname ],
15             );
16             }
17              
18             1;