Condition Coverage

blib/lib/Acrux/DBI.pm
Criterion Covered Total %
condition 17 76 22.3


and 3 conditions

line !l l&&!r l&&r condition
506 0 0 0 defined $self->dbh and $self->dbh->can("err")
511 0 0 0 defined $self->dbh and $self->dbh->can("errstr")

or 2 conditions

line l !l condition
344 0 5 $ENV{'ACRUX_DBI_DEBUG'} || 0
359 0 1 shift() || 'sponge://'
402 2 0 $self->{'uri'}->host || 'localhost'
406 0 2 $self->{'uri'}->port // ""
418 1 0 $self->{'uri'}->username // ""
422 1 0 $self->{'uri'}->password // ""
426 1 0 $self->{'uri'}->userinfo // ""
434 0 0 $u->path->leading_slash(1)->trailing_slash(0)->to_string // ""
437 2 0 $u->path->leading_slash(0)->trailing_slash(0)->to_string // ""
457 0 0 join(';', @params) || ''
462 0 0 join(';', @params) || ''
467 1 0 join(';', @params) || ''
472 0 0 join(';', @params) || ''
488 0 0 $opts->{$k} // ""
524 0 0 $DBI::errstr || 'DBI->connect failed'
539 0 0 $DBI::errstr || 'DBI->connect failed'
587 0 0 shift() // ""
605 0 0 $dbh->errstr || $DBI::errstr || 'unknown error'
614 0 0 $args->{'bind_values'} || []
637 0 0 $sth->errstr || $dbh->errstr || $DBI::errstr || 'unknown error'

or 3 conditions

line l !l&&r !l&&!r condition
398 3 1 0 $self->{'driver'} ||= $self->{'uri'}->protocol
433 0 0 2 $dr eq "sqlite" or $dr eq "file"
451 0 0 1 $dr eq "sqlite" or $dr eq "file"
0 0 1 $dr eq "maria" or $dr eq "mariadb"
0 0 1 $dr eq "pg" or $dr eq "pgsql"
0 1 0 $dr eq "pg" or $dr eq "pgsql" or $dr eq "postgres"
1 0 0 $dr eq "pg" or $dr eq "pgsql" or $dr eq "postgres" or $dr eq "postgresql"
506 0 0 0 $self->dbh->err // $DBI::err
511 0 0 0 $self->dbh->errstr // $DBI::errstr
621 0 0 0 $args->{'bind_callback'} || $args->{'bind_cb'}