Branch Coverage

blib/lib/Plosurin/SoyTree.pm
Criterion Covered Total %
branch 28 44 63.6


line true false branch
31 0 19 $#_ == 0 ? :
42 413 0 $#_ == 0 ? :
66 0 60 if (@_)
69 38 22 unless exists $self->{'content'}
77 20 37 if (scalar @$childs)
84 3 54 if (scalar keys %{$self->attrs;})
160 3 2 if (exists $self->{'commands_elseif'})
169 4 1 if (my $elseif = $self->{'command_else'})
198 2 2 if exists $self->{'value'}
273 1 0 $name =~ /\$(\w+)/ ? :
288 1 1 if (exists $self->{'command_foreach_ifempty'})
332 5 0 if ($txt =~ /$q/) { }
352 1605 0 $#_ == 0 ? :
436 0 4 if (@_)
468 0 19 $#_ == 0 ? :
471 19 0 if (my $src = $self->{'src'})
472 0 19 unless ($self->{'_tree'} = $self->parse($src))
491 19 0 if ($str =~ $q->with_actions('Soy::Actions'->new)) { }
516 0 19 unless $_[0]{'_tree'}
534 20 0 if (ref $node->{'obj'} ne 'Soy::raw_text' or scalar @res == 0)
543 0 0 if (ref $prev->{'obj'} eq 'Soy::raw_text') { }
569 0 15 unless shift()