Branch Coverage

blib/lib/Mojo/MySQL5/Database.pm
Criterion Covered Total %
branch 0 42 0.0


line true false branch
15 0 0 unless my $c = $self->connection
16 0 0 unless my $mysql = $self->mysql
20 0 0 unless (shift())->{'waiting'}
24 0 0 if $self->connection->{'status_flags'} & 1
52 0 0 ref $_[-1] eq 'CODE' ? :
60 0 0 if ($sql =~ /^(\s+)/s or $sql =~ /^(\w+)/) { }
0 0 elsif ($sql =~ /^--.*(?:\n|\z)/p or $sql =~ /^\#.*(?:\n|\z)/p or $sql =~ m[^/\*(?:[^\*]|\*[^/])*(?:\*/|\*\z|\z)]p or $sql =~ /^'(?:[^'\\]*|\\(?:.|\n)|'')*(?:'|\z)/p or $sql =~ /^"(?:[^"\\]*|\\(?:.|\n)|"")*(?:"|\z)/p or $sql =~ /^`(?:[^`]*|``)*(?:`|\z)/p) { }
75 0 0 $token eq '?' ? :
79 0 0 if $self->backlog and not $cb
80 0 0 unless $self->backlog
86 0 0 unless ($cb)
90 0 0 if $self->connection->{'error_code'}
100 0 0 unless defined $string
117 0 0 unless defined $id
126 0 0 unless my $next = $$self{'waiting'}[0]
127 0 0 if $$next{'started'}++
134 0 0 $self->backlog ? :
147 0 0 unless my $res = $$self{'waiting'}[0]{'results'}
154 0 0 unless my $res = $$self{'waiting'}[0]{'results'}
160 0 0 unless my $res = $$self{'waiting'}[0]{'results'}
166 0 0 unless my $res = $$self{'waiting'}[0]{'results'}