Branch Coverage

blib/lib/Template/Lace/Renderer.pm
Criterion Covered Total %
branch 22 40 55.0


line true false branch
10 1 3 if (ref $proto or !1) { }
3 0 elsif ($proto) { }
20 0 0 if (ref $proto or !1) { }
0 0 elsif ($proto) { }
38 5 1 if $self->model->can('process_dom')
48 0 6 unless $self->components->handlers->{$id}
49 1 5 unless my $local_dom = $dom->at("[uuid='${id}']")
55 5 0 if $constructed_component
61 1 5 unless $constructed_components{$id}
70 0 0 unless $_->attr('id') or $_->attr('href')
75 0 3 unless $_->attr('id')
81 0 0 unless $e->attr('id') or $e->attr('src')
104 5 0 if (my $container_id = $component_info{'current_container_id'})
109 2 3 if $constructed_components->{$container_id}
112 5 0 if (&Scalar::Util::blessed($component)) { }
0 0 elsif (ref $component eq 'CODE') { }
114 2 3 if ($attrs{'container'}) { }
115 0 2 if ($attrs{'container'}->can('create_child')) { }
120 2 0 if $attrs{'container'}->can('add_child')
140 6 17 ref $proto ? :