Branch Coverage

blib/lib/ActiveRecord/Simple/Connect.pm
Criterion Covered Total %
branch 10 20 50.0


line true false branch
15 8 0 unless ($self)
17 6 2 if ($dsn)
19 0 6 if $username
20 0 6 if $password
21 6 0 if $params
37 0 6 unless $self->{'dbh'} = 'DBI'->connect($self->{'dsn'}, $self->{'username'}, $self->{'password'})
45 0 0 if $username
53 0 0 if $password
77 2 360 if $dbh
78 0 362 unless $self->{'dbh'} and $self->{'dbh'}->ping