Branch Coverage

blib/lib/WWW/Suffit/Model.pm
Criterion Covered Total %
branch 10 42 23.8


line true false branch
217 1 0 {file => 'sqlite', maria => 'mariadb', mariadb => 'mariadb', mysql => 'mysql', ora => 'oracle', oracle => 'oracle', pg => 'postgresql', pgsql => 'postgresql', postgres => 'postgresql', postgresql => 'postgresql', sponge => 'sponge', sqlite => 'sqlite'}->{(shift())->driver} eq 'sqlite' ? :
218 0 0 {file => 'sqlite', maria => 'mariadb', mariadb => 'mariadb', mysql => 'mysql', ora => 'oracle', oracle => 'oracle', pg => 'postgresql', pgsql => 'postgresql', postgres => 'postgresql', postgresql => 'postgresql', sponge => 'sponge', sqlite => 'sqlite'}->{(shift())->driver} eq 'mysql' ? :
219 0 0 {file => 'sqlite', maria => 'mariadb', mariadb => 'mariadb', mysql => 'mysql', ora => 'oracle', oracle => 'oracle', pg => 'postgresql', pgsql => 'postgresql', postgres => 'postgresql', postgresql => 'postgresql', sponge => 'sponge', sqlite => 'sqlite'}->{(shift())->driver} eq 'mariadb' ? :
220 0 0 {file => 'sqlite', maria => 'mariadb', mariadb => 'mariadb', mysql => 'mysql', ora => 'oracle', oracle => 'oracle', pg => 'postgresql', pgsql => 'postgresql', postgres => 'postgresql', postgresql => 'postgresql', sponge => 'sponge', sqlite => 'sqlite'}->{(shift())->driver} eq 'postgresql' ? :
221 0 0 {file => 'sqlite', maria => 'mariadb', mariadb => 'mariadb', mysql => 'mysql', ora => 'oracle', oracle => 'oracle', pg => 'postgresql', pgsql => 'postgresql', postgres => 'postgresql', postgresql => 'postgresql', sponge => 'sponge', sqlite => 'sqlite'}->{(shift())->driver} eq 'oracle' ? :
229 0 1 unless my $dbh = $self->dbh
231 0 1 if $is_inited
234 1 0 if ($self->is_sqlite) { }
0 0 elsif ($self->is_mariadb or $self->is_mysql) { }
0 0 elsif ($self->is_postgresql) { }
236 1 0 unless ($file and -e $file and not -z $file)
241 1 0 if (my $sth = $dbh->table_info(undef, undef, undef, "TABLE"))
242 0 1 isnt_void($sth->fetchall_arrayref) ? :
249 0 0 if (my $sth = $dbh->table_info("", $schema, "", "TABLE"))
250 0 0 isnt_void($sth->fetchall_arrayref) ? :
257 0 0 if (my $sth = $dbh->table_info("", $schema, undef, "TABLE"))
258 0 0 isnt_void($sth->fetchall_arrayref) ? :
272 1 0 unless ($is_inited)
274 0 1 if $self->error
278 0 1 unless $self->ping
288 0 0 unless +(shift())->{'_is_initialized'}