Branch Coverage

blib/lib/Mojo/mysql/Database.pm
Criterion Covered Total %
branch 0 56 0.0


line true false branch
19 0 0 ref $_[-1] eq 'CODE' ? :
30 0 0 if ${^GLOBAL_PHASE} eq "DESTRUCT"
32 0 0 unless my $mysql = $self->mysql and my $dbh = $self->dbh
36 0 0 unless +(shift())->{'waiting'}
58 0 0 ref $_[-1] eq 'CODE' ? :
61 0 0 unless ($cb)
62 0 0 if $self->backlog
68 0 0 defined $rv && $rv >= 0 ? :
81 0 0 $_[1] ? :
98 0 0 if (ref $param eq "HASH")
99 0 0 if (exists $param->{'json'}) { }
0 0 elsif (exists $param->{'type'} and exists $param->{'value'}) { }
115 0 0 unless delete $self->{'waiting'}
120 0 0 ref $self ? :
123 0 0 if @_
130 0 0 unless my $next = $self->{'waiting'}[0]
131 0 0 if $next->{'sth'}
134 0 0 lc $dbh->{'Driver'}{'Name'} eq 'mariadb' ? :
141 0 0 if $_[0]{'handle'}
146 0 0 if $self->{'handle'}
152 0 0 $driver eq 'mariadb' ? :
153 0 0 unless open $self->{'handle'}, "<&", $fd
156 0 0 unless my $waiting = $self->{'waiting'}
157 0 0 unless @$waiting and $waiting->[0]{'sth'} and $waiting->[0]{'sth'}->$ready_method
164 0 0 if defined $rv
165 0 0 if defined $err
166 0 0 defined $rv && $rv >= 0 ? :
170 0 0 unless $self->backlog