Branch Coverage

blib/lib/Template/Lace/Components.pm
Criterion Covered Total %
branch 33 42 78.5


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