Condition Coverage

blib/lib/BBCode/Util.pm
Criterion Covered Total %
condition 20 54 37.0


and 3 conditions

line !l l&&!r l&&r condition
174 17 0 0 ref $_ and UNIVERSAL::can($_, 'as_bool')
211 0 0 4 defined $m and defined $e
347 0 0 17 defined $n and $n > 0
359 0 15 2 defined $lo and $n2 < $lo
0 12 3 defined $hi and $n2 > $hi
377 0 0 9 defined $n and $n > 0
380 0 8 1 defined $lo and $n2 < $lo
0 7 1 defined $hi and $n2 > $hi
399 0 0 8 $n >= 0 and $n < @compat
444 2 1 5 /^(\w+)$/ and exists $cssColor{$1}
603 7 15 0 $url->can('userinfo') and defined $url->userinfo
604 7 15 0 $url->can('host') and not defined $url->host
728 0 0 0 defined $val and !defined($max) || $val > $max
739 0 0 0 @list and $list[0] eq 'ol'

or 3 conditions

line l !l&&r !l&&!r condition
677 0 0 0 $url->scheme eq 'http' or $url->scheme eq 'https'
678 0 0 0 not defined $url->query or $url->query eq ''
679 0 0 0 $url->path eq '' or $url->path eq '/'
728 0 0 0 !defined($max) || $val > $max