Condition Coverage

blib/lib/Mojo/URL.pm
Criterion Covered Total %
condition 21 27 77.7


and 2 conditions

line l !l condition
16 2649 1041 0 $clone->{$_} and $clone->{$_} = $clone->{$_}->clone

and 3 conditions

line !l l&&!r l&&r condition
171 1577 0 3 $unsafe and defined(my $info = $self->userinfo)

or 2 conditions

line l !l condition
69 5 1 (shift())->userinfo // ""
96 3742 1286 (shift())->scheme // ""
155 5 1 (shift())->userinfo // ""

or 3 conditions

line l !l&&r !l&&!r condition
75 6227 4681 0 $self->{'path'} ||= "Mojo::Path"->new
102 1435 2967 0 $self->{'query'} ||= "Mojo::Parameters"->new
127 23 238 0 shift() || $abs->base
157 54 0 2 decode("UTF-8", $_[0]) // $_[0]
178 1292 285 3 !($auth && length $path) || $path =~ m[^[/?]]u