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 15 76 defined $old and $old =~ /(.*)@/
89 22 4 11 $new =~ /:/ and not $new =~ /^\[/
123 77 344 67 defined $old and $old =~ /:(\d*)$/
157 371 9 9 defined $port && ($port eq '' || $port == $self->default_port)

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
85 2 3 32 $new =~ /^[^:]*:\d*\z/ or $new =~ /]:\d*\z/
131 49 10 39 not defined $port or $port eq ""
159 15 4 370 $uc_host or $def_port