Branch Coverage

blib/lib/Mojo/SQLite/Database.pm
Criterion Covered Total %
branch 29 36 80.5


line true false branch
21 0 19 ref $_[-1] eq 'CODE' ? :
34 0 123 if defined ${^GLOBAL_PHASE} and ${^GLOBAL_PHASE} eq "DESTRUCT"
36 0 123 unless my $sql = $self->sqlite and my $dbh = $self->dbh
54 13 202 ref $_[-1] eq 'CODE' ? :
60 0 23 $prev_h && &$prev_h(@_) ? :
65 6 209 unless (eval { do { if (defined($sth = $dbh->prepare_cached($query, undef, 3))) { _bind_params($sth, @_); $sth->execute; } ; 1 } })
67 204 5 if (defined($sth = $dbh->prepare_cached($query, undef, 3)))
75 5 210 if $errored and not $cb
80 204 6 if (defined $sth)
85 197 13 unless $cb
88 0 12 $errored ? :
1 12 $dbh->err ? :
97 0 11 $_[1] ? :
109 77 127 unless @_
112 23 135 if (ref $param eq 'HASH') { }
113 5 18 if (exists $param->{'type'} and exists $param->{'value'}) { }
17 1 elsif (exists $param->{'json'}) { }
1 0 elsif (exists $param->{'-json'}) { }