Branch Coverage

blib/lib/Moonshine/Template.pm
Criterion Covered Total %
branch 11 52 21.1


line true false branch
29 13 0 if (defined $config)
33 1 12 unless $self->can('build_html')
35 7 5 if (XXX)
50 7 11 if ($self->can('base_element'))
54 13 5 if (XXX)
59 0 13 defined $base_element_args->{'template'} ? :
94 0 0 $value->{'build'} ? :
96 0 0 if (XXX)
97 0 0 if (defined $value->{'target'})
102 0 0 $value->{'target'} eq 'base_element' ? :
128 0 0 unless grep {defined $value->{$_};} 'action', 'target', 'template', 'tag', 'build'
131 0 0 unless $previous and $previous eq $key and die "$key target - $value->{'target'} does not exist in the spec"
136 0 0 unless my $target = $value->{'target'}
139 0 0 if $target eq 'base_element' and unshift @configs, {$key, $value}
144 0 0 if (my $config_count = scalar @configs)
146 0 0 if (my $target_found = $configs[$index]{$target})
153 0 0 unless ($success)
170 0 0 unless defined $val
171 0 0 if XXX
173 0 0 unless $a <=> $b
174 0 0 if XXX
181 0 0 unless defined $_[1]
183 0 0 if XXX and not XXX
187 0 0 unless XXX and (XXX and return map({$config->{$_} = $_[1]{$_};} keys %{$_[1];}))
188 0 0 if $config->{$key} = $_[1]
197 0 12 $_[1]{'base_element'} ? :