Condition Coverage

blib/lib/URLprocessor.pm
Criterion Covered Total %
condition 40 72 55.5


and 3 conditions

line !l l&&!r l&&r condition
62 0 0 3 defined $$self{'URL'} and $$self{'URL'} ne ''
196 1 2 2 defined $param and exists $$self{'PARAMS'}{$param}
208 0 0 3 defined $param and defined $val
223 0 2 1 defined $param and exists $$self{'PARAMS'}{$param}
239 1 0 5 defined $$self{'LOGIN'} and defined $$self{'PASSWD'}
247 0 0 6 defined $$self{'FRAGMENT'} and $$self{'FRAGMENT'} ne ''
294 5 0 11 scalar @param_val == 2 and $param_val[0] ne ''
5 0 11 scalar @param_val == 2 and $param_val[0] ne '' and $param_val[1] ne ''
320 1 0 2 defined $auth and $auth ne ''
346 7 4 0 not defined $$self{'LOGIN'} and defined $$self{'PASSWD'}
347 4 7 0 defined $$self{'LOGIN'} and not defined $$self{'PASSWD'}
348 4 0 7 defined $$self{'LOGIN'} and defined $$self{'PASSWD'}
349 7 0 0 $$self{'LOGIN'} eq '' and $$self{'PASSWD'} ne ''
350 0 7 0 $$self{'LOGIN'} ne '' and $$self{'PASSWD'} eq ''
354 2 6 3 defined $$self{'PORT'} and not $$self{'PORT'} =~ /^\d+$/
355 0 0 11 defined $$self{'LOCAL_PART'} and length $$self{'LOCAL_PART'} > 0
0 11 0 defined $$self{'LOCAL_PART'} and length $$self{'LOCAL_PART'} > 0 and not defined $$self{'LOCAL_PATH'}
359 11 0 0 not defined $$self{'LOCAL_PATH'} and scalar keys %{$$self{'PARAMS'};} || defined $$self{'FRAGMENT'}
363 0 11 0 defined $$self{'PARAMS_VALID'} and $$self{'PARAMS_VALID'} == 0

or 3 conditions

line l !l&&r !l&&!r condition
135 2 0 3 ref $path eq '' or ref $path eq 'SCALAR'
283 2 1 14 not defined $params or $params eq ''
345 1 0 10 not defined $$self{'PROTOCOL'} or $$self{'PROTOCOL'} eq ''
353 1 0 10 not defined $$self{'HOST'} or $$self{'HOST'} eq ''
359 0 0 0 scalar keys %{$$self{'PARAMS'};} || defined $$self{'FRAGMENT'}