Condition Coverage

blib/lib/DBD/libsql.pm
Criterion Covered Total %
condition 18 114 15.7


and 3 conditions

line !l l&&!r l&&r condition
130 0 0 0 $init_result and $init_result->{'baton'}
172 0 0 0 defined $params{'scheme'} and $params{'scheme'} ne ""
173 0 0 0 defined $params{'port'} and $params{'port'} ne ""
179 0 0 0 $scheme eq "http" and $port ne 80
0 0 0 $scheme eq "https" and $port ne 443
211 0 0 0 $old_val and not $new_val
0 0 0 not $old_val and $new_val
253 0 0 0 $dbh and $dbh->FETCH("Active")
257 0 0 0 $dbh_id and exists $DBD::libsql::HTTP_CLIENTS{$dbh_id}
270 0 0 0 defined $statement and $statement =~ /^\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER|PRAGMA)/iu
414 0 0 0 $error_msg =~ /STREAM_EXPIRED/u and $attempt < $max_retries
432 0 0 0 $error_msg =~ /STREAM_EXPIRED/u and $attempt < $max_retries
475 0 0 0 $attr and ref $attr eq "HASH"
0 0 0 $attr and ref $attr eq "HASH" and exists $attr->{'Slice'}
0 0 0 $attr and ref $attr eq "HASH" and exists $attr->{'Slice'} and ref $attr->{'Slice'} eq "HASH"
529 8 0 0 $dbh_id and exists $DBD::libsql::HTTP_CLIENTS{$dbh_id}
625 0 0 0 $execute_result->{'rows'} and @{$execute_result->{'rows'};}
643 0 0 0 $execute_result->{'cols'} and @{$execute_result->{'cols'};}
671 0 0 48 ref $_ eq 'HASH' && exists $_->{'value'}
693 7 0 28 $i < @col_names and $i < @$row
717 3 0 1 defined $max_rows and @rows >= $max_rows
723 2 0 0 defined $max_rows and @rows >= $max_rows
729 2 0 0 defined $max_rows and @rows >= $max_rows
770 0 4 0 $sth and $sth->{'Active'}

or 2 conditions

line l !l condition
169 0 0 $v // ""
411 0 0 $error->{'message'} || 'SQL execution error'
453 0 0 $execute_result->{'affected_row_count'} || 0
598 0 0 $sth->{'libsql_bind_params'} ||= []
617 0 0 $sth->{'Statement'} || ''
632 0 0 $execute_result->{'affected_row_count'} || 0
661 17 0 $sth->{'libsql_http_rows'} || []
662 8 9 $sth->{'libsql_fetch_index'} || 0
752 0 0 $sth->{'libsql_rows'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
48 0 0 5 not defined $dsn or $dsn eq ""
63 1 0 3 $dsn =~ m[^/]u or $dsn =~ /^[a-zA-Z]:\\/u
1 1 2 $dsn =~ m[^/]u or $dsn =~ /^[a-zA-Z]:\\/u or $dsn =~ /\.db$/u
85 0 0 0 $pass || $user || $attr->{'libsql_auth_token'} || $ENV{'TURSO_DATABASE_TOKEN'}
179 0 0 0 $scheme eq "http" and $port ne 80 or $scheme eq "https" and $port ne 443
397 0 0 0 $@ or not $result
0 0 0 $@ or not $result or not $result->{'results'}
646 0 0 0 $_->{'name'} || $_