Condition Coverage

blib/lib/HTML/LinkList.pm
Criterion Covered Total %
condition 44 81 54.3


and 3 conditions

line !l l&&!r l&&r condition
259 0 3 0 defined $args{'urls'} and @{$args{'urls'};}
511 0 0 3 defined $args{'link_tree'} and @{$args{'link_tree'};}
1192 153 0 0 exists $args{'descriptions'}{$link} and defined $args{'descriptions'}{$link}
153 0 0 exists $args{'descriptions'}{$link} and defined $args{'descriptions'}{$link} and $args{'descriptions'}{$link}
1200 65 68 7 $args{'current_url'} and exists $args{'current_parents'}{$link}
133 0 7 $args{'current_url'} and exists $args{'current_parents'}{$link} and $args{'current_parents'}{$link}
1417 2 0 13 defined $args{'start_depth'} and $args{'tree_depth'} < $args{'start_depth'}
1434 35 24 0 $args{'end_depth'} && $tree_depth == $args{'end_depth'}
35 24 0 $args{'end_depth'} && $tree_depth == $args{'end_depth'}
1613 42 0 2 defined $args{'prepend_list'} and @{$args{'prepend_list'};}
1617 0 0 2 $#list_of_lists == 0 and ref $list_of_lists[0] eq 'ARRAY'
1628 44 0 0 defined $args{'append_list'} and @{$args{'append_list'};}
1632 0 0 0 $#list_of_lists == 0 and ref $list_of_lists[0] eq 'ARRAY'
1690 215 0 0 $hide and $nohide
215 0 0 $hide and $nohide and not $path =~ /$nohide/
0 0 0 $hide and $nohide and not $path =~ /$nohide/ and $path =~ /$hide/
215 0 0 $hide and not $nohide
215 0 0 $hide and not $nohide and $path =~ /$hide/
40 131 25 $args{'end_depth'} and $path_depth > $args{'end_depth'}
151 0 20 $args{'navbar_type'} eq 'breadcrumb' and $args{'current_url'}
151 11 9 $args{'navbar_type'} eq 'breadcrumb' and $args{'current_url'} and not $path_depth <= $current_url_depth && $args{'current_url'} =~ /^$path/ || $path eq $args{'current_url'} || $current_url_is_index && $path_depth >= $current_url_depth && $path =~ m[^$current_index_path/] || !$current_url_is_index && $path_depth >= $current_url_depth && $path =~ m[^$current_index_parent/]
47 0 115 $args{'navbar_type'} || $args{'do_navbar'} and $args{'current_url'}
47 76 39 $args{'navbar_type'} || $args{'do_navbar'} and $args{'current_url'} and not $path_depth <= $current_url_depth && $args{'current_url'} =~ /^$path/ || $path eq $args{'current_url'} || $path_depth >= $current_url_depth && $path =~ m[^$current_index_path/] || $args{'start_depth'} == $args{'top_level'} && $path_depth == $args{'start_depth'} || !$current_url_is_index && $path_depth == $current_url_depth - 1 && $path =~ m[^$current_index_parent/] || $current_url_is_index && $path_depth == $current_url_depth && $path =~ m[^$current_index_parent/]

or 3 conditions

line l !l&&r !l&&!r condition
1690 3 0 14 $path_depth <= $current_url_depth && $args{'current_url'} =~ /^$path/ || $path eq $args{'current_url'} || $current_url_is_index && $path_depth >= $current_url_depth && $path =~ m[^$current_index_path/] || !$current_url_is_index && $path_depth >= $current_url_depth && $path =~ m[^$current_index_parent/]
115 0 47 $args{'navbar_type'} || $args{'do_navbar'}
2 0 43 $path_depth <= $current_url_depth && $args{'current_url'} =~ /^$path/ || $path eq $args{'current_url'} || $path_depth >= $current_url_depth && $path =~ m[^$current_index_path/] || $args{'start_depth'} == $args{'top_level'} && $path_depth == $args{'start_depth'} || !$current_url_is_index && $path_depth == $current_url_depth - 1 && $path =~ m[^$current_index_parent/] || $current_url_is_index && $path_depth == $current_url_depth && $path =~ m[^$current_index_parent/]
1856 2 0 19 $args{'links_head'} ne $args{'subtree_head'} or $args{'links_foot'} ne $args{'subtree_foot'}