blib/lib/Text/Hogan/Template.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 45 | 59 | 76.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
76 | 16 | 0 | 0 | $partial->{'instance'} and $partial->{'base'} eq $template |
99 | 0 | 0 | 0 | $self->{'active_sub'} && $partials->{'stack_text'}{$self->{'active_sub'}} |
139 | 65 | 9 | 3 | ref $val eq 'ARRAY' and not @$val |
147 | 26 | 11 | 37 | not $inverted and $pass |
37 | 0 | 37 | not $inverted and $pass and $ctx | |
175 | 14 | 0 | 23 | $key eq '.' and ref $ctx->[-2] eq 'ARRAY' |
191 | 29 | 4 | 4 | $return_found and not $val |
193 | 4 | 29 | 0 | not $return_found and ref $val eq 'CODE' |
233 | 73 | 105 | 8 | not $return_found and ref $val eq 'CODE' |
283 | 0 | 0 | 0 | $self->{'active_sub'} && $self->{'subs_text'} && $self->{'subs_text'}{$self->{'active_sub'}} |
line | l | !l | condition |
---|---|---|---|
12 | 145 | 4 | $code_obj ||= {} |
22 | 145 | 4 | $options || {} |
144 | 5 | $text || '' | |
145 | 4 | $code_obj->{'partials'} || {} | |
145 | 4 | $code_obj->{'subs'} || {} | |
46 | 117 | 0 | $str //= '' |
62 | 27 | 120 | $partials || {} |
92 | 2 | 14 | $partials->{'stack_text'} ||= {} |
324 | 1 | 15 | $stack_subs ||= {} |
337 | 1 | 15 | $stack_partials ||= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
22 | 145 | 0 | 4 | $code_obj->{'code'} || ref $orig && $orig->{'r'} |
145 | 4 | 0 | ref $orig || $orig | |
148 | 8 | 11 | 18 | ref $val eq 'ARRAY' || ref $val eq 'HASH' |