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 | 2444 | use base 'URI::_db'; | |||
2 | 4 | ||||||
2 | 368 | ||||||
3 | our $VERSION = '0.20'; | ||||||
4 | |||||||
5 | 54 | 54 | 1 | 22948 | sub default_port { 3306 } | ||
6 | 2 | 2 | 0 | 7 | sub dbi_driver { 'mysql' } | ||
7 | 60 | 60 | 0 | 24698 | sub canonical_engine { 'mysql' } | ||
8 | |||||||
9 | sub _dbi_param_map { | ||||||
10 | 6 | 6 | 25 | my $self = shift; | |||
11 | return ( | ||||||
12 | 6 | 19 | [ host => scalar $self->host ], | ||||
13 | [ port => scalar $self->_port ], | ||||||
14 | [ database => scalar $self->dbname ], | ||||||
15 | ); | ||||||
16 | } | ||||||
17 | |||||||
18 | 1; |