Branch Coverage

blib/lib/Moonshine/Element.pm
Criterion Covered Total %
branch 71 74 95.9


line true false branch
62 22787 704 unless defined $val
63 520 184 if XXX
65 25 159 if XXX
75 392 18 unless defined $_[1]
77 11 7 if XXX and not XXX
79 1 1 if XXX and XXX and map {$_[0]{$attr}{$_} = $_[1]{$_};} keys %{$_[1];}
81 4 2 if $_[0]{$attr} = $_[1]
89 118 13 if $meth =~ /BUILD|DEMOLISH/
91 13 0 if $element
99 208 23 unless XXX
105 27 50 if (XXX)
107 50 3 unless XXX or XXX
119 9 43 if (XXX)
120 8 1 if $build_args->isa("Moonshine::Element")
129 8 11 if (defined $_[2] and my $parent = $_[0]{'parent'}) { }
5 6 elsif (defined $_[2]) { }
133 5 3 if $_[2] eq "after"
167 121 22680 if ($_[0]->$has_action)
179 8 143 if ($_[0]->has_before_element)
185 7 144 if ($_[0]->has_after_element)
195 62 94 $_[0]->has_data ? :
199 1 2 unless XXX
210 23 74 unless XXX
212 8 30 unless XXX
215 17 13 if $e->$has and $e->_attribute_value($_, $has) =~ /$_[1]/
219 5 8 if $found
226 1 5 unless XXX
231 0 0 unless XXX
238 9 175 unless XXX
240 81 37 unless XXX
244 18 19 if $e->$has and $e->_attribute_value($_, $has) =~ /$_[1]/
253 1 3 unless XXX
258 1 1 unless XXX
264 32 119 if ($_[0]->has_children)
280 8 12 if $value
288 50 67 if $value
289 114 3 if XXX and $value .= $_