blib/lib/ActiveRecord/Simple/Connect.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 10 | 20 | 50.0 |
line | true | false | branch |
---|---|---|---|
15 | 7 | 0 | unless ($self) |
17 | 4 | 3 | if ($dsn) |
19 | 0 | 4 | if $username |
20 | 0 | 4 | if $password |
21 | 4 | 0 | if $params |
49 | 0 | 4 | unless $self->{'dbh'} = 'DBI'->connect($self->{'dsn'}, $self->{'username'}, $self->{'password'}, {'HandleError', sub { my($a, $b, $c) = @_; say 'Simple.Connect.db_connect.HandleError.a = ' . Dumper($a); } }) |
57 | 0 | 0 | if $username |
65 | 0 | 0 | if $password |
89 | 3 | 317 | if $dbh |
90 | 0 | 320 | unless $self->{'dbh'} and $self->{'dbh'}->ping |