Branch Coverage

blib/lib/HTML/FormHandler/BuildPages.pm
Criterion Covered Total %
branch 28 60 46.6


line true false branch
20 0 2 unless $page_list and ref $page_list eq 'ARRAY'
21 1 1 if scalar @{$page_list;}
39 1 0 if (ref $plist eq 'ARRAY')
55 0 3 unless (ref $attr eq 'HASH')
72 0 6 unless $count == $num_dots
86 0 6 unless $name
89 0 6 if ($name =~ /^\+(.*)/)
95 0 6 if ($page_ns)
96 0 0 ref $page_ns eq 'ARRAY' ? :
100 0 6 if ($type =~ s/^\+//)
111 6 0 load_optional_class($try) ? :
6 0 if $class = load_optional_class($try) ? $try : undef
113 0 6 unless $class
116 6 0 if $self->form
118 0 6 if ($page_attr->{'name'} =~ /\./) { }
0 6 elsif (not $self->form && $self == $self->form) { }
123 0 0 if ($parent)
141 0 6 if (defined $index) { }
142 0 0 if ($do_update) { }
145 0 0 unless $page
149 0 0 if $page->can($key)
171 6 0 unless ($widget)
173 0 6 if ($attr)
178 0 6 if ($page_attr->{'traits'})
182 0 6 if ($widget)
186 0 6 if (@traits) { }
203 10 0 if ($meta->can('calculate_all_roles'))
205 0 28 if ($role->can('page_list') and $role->has_page_list)
213 1 9 if ($meta->can('page_list') and $meta->has_page_list)
220 1 1 if scalar @page_list