Branch Coverage

blib/lib/Tree/Simple/View/HTML.pm
Criterion Covered Total %
branch 53 56 94.6


line true false branch
30 1 7 if ($self->{'include_trunk'} and not +(caller 1)[3] =~ /expandPathSimple$/) { }
35 1 0 if defined $current_path and $tree->getNodeValue eq $current_path
42 4 18 if (defined $current_path and $self->_compareNodeToPath($current_path, $child)) { }
65 10 54 if (defined $current_path and $self->_compareNodeToPath($current_path, $child)) { }
66 10 0 if (not $child->isLeaf) { }
83 2 8 if ($self->{'include_trunk'}) { }
85 2 0 if (defined $current_path and $self->_compareNodeToPath($current_path, $tree)) { }
109 8 23 if $last_depth > $current_depth
111 11 20 unless $t->isLeaf
114 1 1 if $self->{'include_trunk'}
117 1 1 if $self->{'include_trunk'}
133 32 90 if $last_depth > $current_depth
134 80 42 if ($t->isLeaf) { }
140 42 80 unless $t->isLeaf
143 2 6 if $self->{'include_trunk'}
146 2 6 if $self->{'include_trunk'}
161 21 10 if (not exists $config{'tag_style'}) { }
1 9 elsif (not exists $tags{$config{'tag_style'}}) { }
203 2 14 $config{'list_type'} eq 'unordered' ? :
16 14 if exists $config{'list_type'}
206 6 24 if (exists $config{'list_css'}) { }
9 15 elsif (exists $config{'list_css_class'}) { }
213 3 3 unless $_list_css =~ /\;$/
238 6 24 if (exists $config{'list_item_css'}) { }
9 15 elsif (exists $config{'list_item_css_class'}) { }
247 6 24 if (exists $config{'expanded_item_css'}) { }
9 15 elsif (exists $config{'expanded_item_css_class'}) { }
257 15 15 if exists $config{'node_formatter'} and ref $config{'node_formatter'} eq 'CODE'