Branch Coverage

blib/lib/Tree/Simple/View/HTML.pm
Criterion Covered Total %
branch 66 70 94.2


line true false branch
31 1 7 if ($self->{'include_trunk'} and not +(caller 1)[3] =~ /expandPathSimple$/) { }
36 1 0 if defined $current_path and $tree->getNodeValue eq $current_path
43 4 18 if (defined $current_path and $self->_compareNodeToPath($current_path, $child)) { }
66 10 54 if (defined $current_path and $self->_compareNodeToPath($current_path, $child)) { }
67 0 10 if ($child->isLeaf) { }
84 2 8 if ($self->{'include_trunk'}) { }
86 2 0 if (defined $current_path and $self->_compareNodeToPath($current_path, $tree)) { }
111 8 23 if $last_depth > $current_depth
113 11 20 unless $t->isLeaf
116 1 1 if $self->{'include_trunk'}
119 1 1 if $self->{'include_trunk'}
127 2 9 $config->{'html5'} ? :
134 2 8 if ($html5) { }
142 0 13 $node_formatter ? :
144 6 7 if $t->isFirstChild
152 6 7 if $t->isLastChild
155 1 1 if ($self->{'include_trunk'})
164 1 1 if ($self->{'include_trunk'})
178 32 90 if $last_depth > $current_depth
180 80 42 if ($t->isLeaf) { }
189 42 80 unless $t->isLeaf
196 2 6 if $self->{'include_trunk'}
201 2 6 if $self->{'include_trunk'}
220 23 10 if (not exists $config{'tag_style'}) { }
1 9 elsif (not exists $tags{$config{'tag_style'}}) { }
264 2 14 $config{'list_type'} eq 'unordered' ? :
16 16 if exists $config{'list_type'}
267 6 26 if (exists $config{'list_css'}) { }
9 17 elsif (exists $config{'list_css_class'}) { }
274 3 3 unless $_list_css =~ /\;$/
299 6 28 if (exists $config{'list_item_css'}) { }
9 19 elsif (exists $config{'list_item_css_class'}) { }
308 6 28 if (exists $config{'expanded_item_css'}) { }
9 19 elsif (exists $config{'expanded_item_css_class'}) { }
318 15 19 if exists $config{'node_formatter'} and ref $config{'node_formatter'} eq 'CODE'