blib/lib/Mojo/MySQL5/Connection.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 6 | 46 | 13.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
86 | 0 | 0 | 0 | $len >= 1 and $len <= 4 |
113 | 0 | 6 | 25 | $len >= 2 and $len <= 4 |
393 | 0 | 0 | 1 | $auth_len == 21 and length $$self{'auth_plugin_data'} == 20 |
432 | 0 | 0 | 0 | $$self{'seq'} and $seq != ($$self{'seq'} + 1 & 255) |
566 | 1 | 0 | 0 | $self->state eq 'idle' and $$self{'socket'} |
line | l | !l | condition |
---|---|---|---|
15 | 0 | 8 | $ENV{'MOJO_MYSQL_DEBUG'} // 0 |
87 | 0 | 0 | $len == 6 or $len = 8 |
186 | 0 | 0 | $self->url->options->{'utf8'} // 1 |
327 | 0 | 1 | $self->url->options->{'utf8'} // 1 |
475 | 0 | 0 | $$self{'error_message'} //= 'timeout' |
481 | 0 | 0 | $$self{'error_message'} //= 'disconnected' |
512 | 0 | 0 | $self->url->options->{'connect_timeout'} // 10 |
541 | 0 | 0 | $self->url->host || '127.0.0.1' |
0 | 0 | $self->url->port || 3306 | |
0 | 0 | $self->url->options->{'connect_timeout'} // 10 | |
573 | 0 | 0 | $sep || '|' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
411 | 0 | 0 | 0 | $_[0]{'ioloop'} ||= 'Mojo::IOLoop'->new |
470 | 0 | 0 | 0 | $$self{'error_message'} //= $err |
506 | 0 | 0 | 0 | $self->url->host eq '' or $self->url->host eq 'localhost' |