Condition Coverage

blib/lib/URI/_server.pm
Criterion Covered Total %
condition 23 23 100.0


and 3 conditions

line !l l&&!r l&&r condition
68 3 26 107 defined $old and $old =~ /(.*)@/
89 23 4 11 $new =~ /:/ and not $new =~ /^\[/
123 77 358 74 defined $old and $old =~ /:(\d*)$/
157 372 10 9 defined $port && ($port eq '' || $port == $self->default_port)

or 2 conditions

line l !l condition
154 317 74 $other->host || ''

or 3 conditions

line l !l&&r !l&&!r condition
85 2 3 33 $new =~ /^[^:]*:\d*\z/ or $new =~ /]:\d*\z/
131 62 12 43 not defined $port or $port eq ""
159 15 4 372 $uc_host or $def_port