Condition Coverage

blib/lib/HTML/ListToTree.pm
Criterion Covered Total %
condition 39 62 62.9


and 3 conditions

line !l l&&!r l&&r condition
393 3 4 8 $#{$$_{'_children'};} >= 0 && $args{'UseIcons'}
407 75 9 18 $#{$$_{'_children'};} >= 0 && $args{'UseIcons'}
419 0 0 0 substr($jspath, 0, 2) eq './' and substr($path, 0, 2) eq './'
429 0 0 0 @parts and @jsparts
0 0 0 @parts and @jsparts and $parts[0] eq $jsparts[0]
573 0 0 120 $$node{'_link'} && $$node{'_link'} =~ /^([^\#]+)/

or 2 conditions

line l !l condition
72 2 50 $args{'Children'} ||= []
95 51 1 $onUnlink ||= 'include'
336 2 1 $args{'CloseIcon'} ||= 'closedbook.gif'
337 2 1 $args{'OpenIcon'} ||= 'openbook.gif'
338 2 1 $args{'IconPath'} ||= './img'
339 2 1 $args{'CSSPath'} ||= './css/dtree.css'
340 2 1 $args{'JSPath'} ||= './js/dtree.js'
342 2 1 $args{'Target'} ||= 'mainframe'
343 1 2 $args{'Additions'} ||= ''
367 2 1 $args{'UseIcons'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
341 2 1 0 $args{'RootIcon'} ||= $args{'OpenIcon'}
478 2 2 0 $_->tag eq 'ul' or $_->tag eq 'ol'
504 14 32 0 $#{$tree[$i]{'_children'};} >= 0 or $tree[$i]{'_link'}
540 6 8 0 $_->tag eq 'ul' or $_->tag eq 'ol'
661 1 0 0 $_[1] || $_[0]{'_jspath'}
680 1 0 0 $_[1] || $_[0]{'_csspath'}
701 1 0 0 $_[2] || $_[0]{'_iconpath'}
724 18 0 0 $_[1] || $_[0]{'_iconpath'}