Branch Coverage

blib/lib/Template/Lace/Components.pm
Criterion Covered Total %
branch 33 44 75.0


line true false branch
44 2 5 if (ref $args->{'component_handlers'}{$prefix} eq 'CODE') { }
48 0 5 ref $handler eq 'CODE' ? :
52 2 5 if ($handler->model_class->can('on_component_add'))
84 15 149 if (my($prefix, $component_name) = ($child_dom->tag || '') =~ /^(.+?)\-(.+)?/)
86 15 0 if ($class->is_a_component($handlers, $prefix, $component_name))
87 7 8 unless ($child_dom->attr('uuid'))
99 6 1 if $current_container_id
125 15 0 if ($handlers->{$prefix}) { }
126 3 12 if (ref $handlers->{$prefix} eq 'CODE') { }
129 12 0 $handlers->{$prefix}{$name} ? :
156 0 7 unless $dom->attr
163 2 25 if (my($node, $css) = $value =~ /^\\['"](\@?)(.+)['"]$/) { }
3 22 elsif (my $path = ($value =~ /^\$\.(.+)$/)[0]) { }
1 21 elsif ($value =~ /^\{/) { }
1 20 elsif ($value =~ /^\[/) { }
185 0 2 (ref $_ || '') eq 'CODE' ? :
206 0 2 if ($node) { }
209 2 0 if (my $content = $css =~ s/\:content$//) { }
0 0 elsif (my $nodes = $css =~ s/\:nodes$//) { }
221 2 1 $path =~ /\./ ? :
225 3 6 if (&Scalar::Util::blessed($ctx)) { }
6 0 elsif (ref $ctx eq 'HASH') { }