Branch Coverage

blib/lib/YATT/Lite/CGen.pm
Criterion Covered Total %
branch 37 52 71.1


line true false branch
26 5 221 if ($folder->can_generate_code)
34 0 363 ref $spec ? :
35 0 363 unless $self->{'cf_sink'}
36 136 227 if defined $tmpl->{'product'}{$type}
39 0 227 if (not defined $tmpl->{'product'}{$type}) { }
47 227 0 if not $kind && $self->{'cf_only_parse'} or $self->{'cf_only_parse'}{$kind}
50 201 0 if (my $sub = $self->{'cf_sink'})
61 220 0 if @_
67 349 0 if (not $kind && $self->{'cf_only_parse'} or $kind eq $part->{'cf_kind'}) { }
71 0 349 unless my $sub = $self->can("generate_$part->{'cf_kind'}")
88 128 78 unless (exists $self->{'altgen'}{$ns})
90 0 128 if (my $sub = $self->can("create_altgen_$ns"))
109 0 619 unless defined $varName
111 298 1837 if (defined(my $var = $scope->[0]{$varName}))
112 0 298 if $check and not &$check($var)
125 2 145 unless $self->{'cf_vfs'}->find_part_from($self->{'curtmpl'}, @path)
143 19 0 defined $ln ? :
154 147 1510 unless defined $lineno
156 0 1510 if $self->{'cf_check_lineno'} and $diff < 0
158 158 1352 $diff > 0 ? :
167 424 4 wantarray ? :
427 206 unless $self->{'curtoks'} and @{$self->{'curtoks'};} and $self->{'curtoks'}[0] =~ /^\r?\n$/
169 122 0 wantarray ? :
122 84 if @{$self->{'curtoks'};} == 1
176 0 395 unless @_
177 51 344 ref $_[-1] eq 'ARRAY' ? :