Branch Coverage

blib/lib/Moonshine/Component.pm
Criterion Covered Total %
branch 24 34 70.5


line true false branch
47 408 814 if (XXX)
48 0 408 if defined $spec->{'build'}
49 0 408 if (exists $spec->{'base'})
52 0 0 if $param
53 0 0 if $spec
58 1220 2 if (exists $html_spec{$key}) { }
2 0 elsif (exists $modifier_spec{$key}) { }
59 813 407 if (defined $spec)
62 407 813 if (exists $args{'params'}{$key})
68 2 0 if (defined $spec)
71 1 1 if (exists $args{'params'}{$key})
95 0 1221 if (defined $modifier{$element})
101 1 406 if (scalar keys %modifier and $self->can('modify'))
115 1 4 if (XXX and $build->isa('Moonshine::Element')) { }
1 3 elsif (my $action = delete $build->{'action'}) { }
1 2 elsif (defined $build->{'tag'}) { }
119 0 1 unless $self->can($action) and $element = $self->$action($build)