| blib/lib/Moonshine/Element.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 26 | 32 | 81.2 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 75 | 7 | 0 | 11 | is_arrayref($val) and not is_arrayref($_[1]) |
| 77 | 5 | 1 | 1 | is_hashref($val) and is_hashref($_[1]) |
| 6 | 0 | 1 | is_hashref($val) and is_hashref($_[1]) and map {$_[0]{$attr}{$_} = $_[1]{$_};} keys %{$_[1];} | |
| 127 | 6 | 5 | 8 | defined $_[2] and my $parent = $_[0]{'parent'} |
| 213 | 1 | 12 | 17 | $e->$has and $e->_attribute_value($_, $has) =~ /$_[1]/ |
| 242 | 12 | 7 | 18 | $e->$has and $e->_attribute_value($_, $has) =~ /$_[1]/ |
| 288 | 3 | 0 | 114 | is_scalarref(\$_) and $value .= $_ |
| line | l | !l | condition |
|---|---|---|---|
| 234 | 37 | 9 | $_[3] //= [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 105 | 3 | 0 | 50 | is_hashref($args->{'data'}[$_]) or is_blessed_ref($args->{'data'}[$_]) |
| 116 | 8 | 44 | 0 | $parent // $self |
| 273 | 175 | 62 | 0 | $has_action //= sprintf('has_%s', $attribute) |