blib/lib/Mojo/URL.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 27 | 77.7 |
line | l | !l | condition | |
---|---|---|---|---|
16 | 2359 | 1040 | 0 | $clone->{$_} and $clone->{$_} = $clone->{$_}->clone |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
171 | 1439 | 0 | 3 | $unsafe and defined(my $info = $self->userinfo) |
line | l | !l | condition |
---|---|---|---|
69 | 5 | 1 | (shift())->userinfo // "" |
96 | 3755 | 1096 | (shift())->scheme // "" |
155 | 5 | 1 | (shift())->userinfo // "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
75 | 5952 | 4474 | 0 | $self->{'path'} ||= "Mojo::Path"->new |
102 | 1362 | 2877 | 0 | $self->{'query'} ||= "Mojo::Parameters"->new |
127 | 23 | 238 | 0 | shift() || $abs->base |
157 | 54 | 0 | 2 | decode("UTF-8", $_[0]) // $_[0] |
178 | 1098 | 341 | 3 | !($auth && length $path) || $path =~ m[^[/?]]u |