Branch Coverage

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


line true false branch
47 333 664 if (XXX)
48 0 333 if defined $spec->{'build'}
49 0 333 if (exists $spec->{'base'})
52 0 0 if $param
53 0 0 if $spec
58 995 2 if (exists $html_spec{$key}) { }
2 0 elsif (exists $modifier_spec{$key}) { }
59 663 332 if (defined $spec)
62 332 663 if (exists $args{'params'}{$key})
68 2 0 if (defined $spec)
71 1 1 if (exists $args{'params'}{$key})
95 0 996 if (defined $modifier{$element})
101 1 331 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)