Branch Coverage

blib/lib/Moonshine/Element.pm
Criterion Covered Total %
branch 36 74 48.6


line true false branch
62 5739 154 unless defined $val
63 117 37 if XXX
65 2 35 if XXX
75 119 3 unless defined $_[1]
77 3 0 if XXX and not XXX
79 0 0 if XXX and XXX and map {$_[0]{$attr}{$_} = $_[1]{$_};} keys %{$_[1];}
81 0 0 if $_[0]{$attr} = $_[1]
89 18 0 if $meth =~ /BUILD|DEMOLISH/
91 0 0 if $element
99 45 0 unless XXX
105 1 14 if (XXX)
107 3 0 unless XXX or XXX
119 0 8 if (XXX)
120 0 0 if $build_args->isa('Moonshine::Element')
129 5 3 if (defined $_[2] and my $parent = $_[0]{'parent'}) { }
2 1 elsif (defined $_[2]) { }
133 3 2 if $_[2] eq 'after'
161 36 5702 if ($_[0]->$has_action)
173 2 36 if ($_[0]->has_before_element)
179 1 37 if ($_[0]->has_after_element)
189 2 37 $_[0]->has_data ? :
193 0 0 unless XXX
204 0 0 unless XXX
206 0 0 unless XXX
209 0 0 if $e->$has and $e->_attribute_value($_, $has) =~ /$_[1]/
213 0 0 if $found
220 0 0 unless XXX
225 0 0 unless XXX
232 0 0 unless XXX
234 0 0 unless XXX
238 0 0 if $e->$has and $e->_attribute_value($_, $has) =~ /$_[1]/
247 0 0 unless XXX
252 0 0 unless XXX
258 6 32 if ($_[0]->has_children)
274 2 1 if $value
282 6 3 if $value
283 9 0 if XXX and $value .= $_