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 118 if defined ${^GLOBAL_PHASE} and ${^GLOBAL_PHASE} eq "DESTRUCT"
36 0 118 unless my $sql = $self->sqlite and my $dbh = $self->dbh
54 13 193 ref $_[-1] eq 'CODE' ? :
60 0 17 $prev_h && &$prev_h(@_) ? :
65 6 200 unless (eval { do { if (defined($sth = $dbh->prepare_cached($query, undef, 3))) { _bind_params($sth, @_); $sth->execute; } ; 1 } })
67 198 2 if (defined($sth = $dbh->prepare_cached($query, undef, 3)))
75 5 201 if $errored and not $cb
80 198 3 if (defined $sth)
85 188 13 unless $cb
88 0 12 $errored ? :
1 12 $dbh->err ? :
97 0 11 $_[1] ? :
109 77 121 unless @_
112 23 126 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'}) { }