Condition Coverage

blib/lib/URI.pm
Criterion Covered Total %
condition 23 31 74.1


and 3 conditions

line !l l&&!r l&&r condition
70 144 0 136 $scheme and $scheme =~ /^($scheme_re)(?::|$)/o
153 144 0 1058 $scheme and $scheme =~ /\A$scheme_re\z/o
187 56 45 0 $@ and not $@ =~ /Can\'t locate.*in \@INC/
229 63 1 269 defined $new and length $new
239 64 0 0 $^W and $$self =~ /^$scheme_re:/o

or 2 conditions

line l !l condition
129 9 35 $user ||= ""
357 394 63 $self->_scheme || ''

or 3 conditions

line l !l&&r !l&&!r condition
78 1157 45 0 implementor($scheme) || do { require URI::_foreign; $impclass = 'URI::_foreign' }
11 1202 0 $impclass ||= implementor($scheme) || do { require URI::_foreign; $impclass = 'URI::_foreign' }
101 922 289 0 $str =~ /^$scheme_re:/o or $class->_no_scheme_ok
360 10 42 405 $uc_scheme or $esc