Branch Coverage

blib/lib/YATT/Lite/CGen.pm
Criterion Covered Total %
branch 35 50 70.0


line true false branch
25 0 241 ref $spec ? :
26 0 241 unless $self->{'cf_sink'}
27 78 163 if defined $tmpl->{'product'}{$type}
30 0 163 if (not defined $tmpl->{'product'}{$type}) { }
38 163 0 if not $kind && $self->{'cf_only_parse'} or $self->{'cf_only_parse'}{$kind}
41 137 0 if (my $sub = $self->{'cf_sink'})
52 156 0 if @_
58 228 0 if (not $kind && $self->{'cf_only_parse'} or $kind eq $part->{'cf_kind'}) { }
62 0 228 unless my $sub = $self->can("generate_$part->{'cf_kind'}")
76 98 43 unless (exists $self->{'altgen'}{$ns})
78 0 98 if (my $sub = $self->can("create_altgen_$ns"))
97 0 424 unless defined $varName
99 279 1098 if (defined(my $var = $scope->[0]{$varName}))
100 0 279 if $check and not &$check($var)
113 2 83 unless $self->{'cf_vfs'}->find_part_from($self->{'curtmpl'}, @path)
131 19 0 defined $ln ? :
142 91 1054 unless defined $lineno
144 0 1054 if $self->{'cf_check_lineno'} and $diff < 0
146 147 907 $diff > 0 ? :
154 298 4 wantarray ? :
302 146 unless @{$self->{'curtoks'};} and $self->{'curtoks'}[0] =~ /^\r?\n$/
156 65 0 wantarray ? :
65 81 if @{$self->{'curtoks'};} == 1
163 0 275 unless @_
164 50 225 ref $_[-1] eq 'ARRAY' ? :