blib/lib/Mojo/MySQL5/URL.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 20 | 24 | 83.3 |
line | true | false | branch |
---|---|---|---|
4 | 8 | 0 | @_ ? : |
12 | 3 | 5 | if (($self->userinfo // '') =~ /^([^:]+)(?::([^:]+))?$/) |
14 | 2 | 1 | if defined $2 |
18 | 8 | 0 | unless exists $$self{'options'} |
26 | 7 | 8 | unless @_ |
34 | 40 | 0 | unless @_ |
41 | 16 | 2 | unless @_ |
43 | 2 | 0 | $self->username . $self->password ? : |
48 | 12 | 3 | unless @_ |
50 | 2 | 1 | $self->username . $self->password ? : |
56 | 2 | 5 | if $self->host |
57 | 1 | 6 | if $self->port |