Condition Coverage

blib/lib/CGI/Util.pm
Criterion Covered Total %
condition 16 36 44.4


and 3 conditions

line !l l&&!r l&&r condition
83 0 54 119 defined $param[0] and substr($param[0], 0, 1) eq '-'
112 0 0 70 $attr and ref $attr
0 0 70 $attr and ref $attr and ref $attr eq 'HASH'
184 197 0 0 defined $_[1] && $_[0] eq $CGI::DefaultClass
0 197 0 @_ > 0 and ref $_[0] || defined $_[1] && $_[0] eq $CGI::DefaultClass
200 0 0 0 defined $_[1] && $_[0] eq $CGI::DefaultClass
352 0 4 @_ > 1 and ref $_[0] || defined $_[1] && $_[0] eq $CGI::DefaultClass

or 2 conditions

line l !l condition
113 69 1 shift @_ || 0
218 11 0 $format ||= 'http'
265 5 0 $mult{$2} || 1

or 3 conditions

line l !l&&r !l&&!r condition
184 0 0 197 ref $_[0] || defined $_[1] && $_[0] eq $CGI::DefaultClass
200 4 0 0 ref $_[0] || defined $_[1] && $_[0] eq $CGI::DefaultClass
260 5 0 6 not $time or lc $time eq 'now'