Branch Coverage

blib/lib/Plosurin/SoyTree.pm
Criterion Covered Total %
branch 29 46 63.0


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/) { }
354 2 0 $#_ == 0 ? :
367 1605 0 $#_ == 0 ? :
451 0 4 if (@_)
483 0 19 $#_ == 0 ? :
486 19 0 if (my $src = $self->{'src'})
487 0 19 unless ($self->{'_tree'} = $self->parse($src))
506 19 0 if ($str =~ $q->with_actions('Soy::Actions'->new)) { }
531 0 19 unless $_[0]{'_tree'}
549 20 0 if (ref $node->{'obj'} ne 'Soy::raw_text' or scalar @res == 0)
558 0 0 if (ref $prev->{'obj'} eq 'Soy::raw_text') { }
584 0 15 unless shift()