Branch Coverage

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


line true false branch
19 0 0 ref $_[-1] eq 'CODE' ? :
31 0 0 unless my $mysql = $self->mysql and my $dbh = $self->dbh
35 0 0 unless +(shift())->{'waiting'}
57 0 0 ref $_[-1] eq 'CODE' ? :
60 0 0 unless ($cb)
61 0 0 if $self->backlog
67 0 0 defined $rv && $rv >= 0 ? :
80 0 0 $_[1] ? :
97 0 0 if (ref $param eq "HASH")
98 0 0 if (exists $param->{'json'}) { }
0 0 elsif (exists $param->{'type'} and exists $param->{'value'}) { }
114 0 0 unless delete $self->{'waiting'}
119 0 0 ref $self ? :
122 0 0 if @_
129 0 0 unless my $next = $self->{'waiting'}[0]
130 0 0 if $next->{'sth'}
133 0 0 lc $dbh->{'Driver'}{'Name'} eq 'mariadb' ? :
140 0 0 if $_[0]{'handle'}
145 0 0 if $self->{'handle'}
151 0 0 $driver eq 'mariadb' ? :
152 0 0 unless open $self->{'handle'}, "<&", $fd
155 0 0 unless my $waiting = $self->{'waiting'}
156 0 0 unless @$waiting and $waiting->[0]{'sth'} and $waiting->[0]{'sth'}->$ready_method
163 0 0 if defined $rv
164 0 0 if defined $err
165 0 0 defined $rv && $rv >= 0 ? :
169 0 0 unless $self->backlog