Condition Coverage

blib/lib/Template/Alloy/HTE.pm
Criterion Covered Total %
condition 59 123 47.9


and 3 conditions

line !l l&&!r l&&r condition
39 0 0 297 $str_ref and defined $$str_ref
81 0 4 0 $func ne 'VAR' and not $dirs->{$func}
111 32 0 0 $n and not $self->{'_no_interp'}
113 0 0 0 defined $pointer->[-1] and not ref $pointer->[-1]
136 12 12 8 not $not and $self->{'SHOW_UNDEFINED_INTERP'}
146 179 250 0 $func ne 'VAR' and not $dirs->{$func}
154 427 0 2 $pre_chomp and $pointer->[-1]
0 0 2 $pre_chomp and $pointer->[-1] and not ref $pointer->[-1]
185 0 0 2 $quote and UNIVERSAL::can($err, 'info')
231 0 0 208 defined $name and length $name
244 24 182 2 not $escape and $self->{'DEFAULT_ESCAPE'}
266 0 0 0 UNIVERSAL::can($err, 'node') and not $err->node
299 0 6 0 defined $parent_node->[3] and @in_view
304 0 2 4 $pointer->[-1] and not $pointer->[-1][6]

or 2 conditions

line l !l condition
43 0 297 $self->{'V2EQUALS'} || 0
318 0 28 $node->[4] ||= []
325 0 72 $node->[4] ||= []
400 0 248 $self->{'TYPE'} || ''
421 180 68 $self->{'_vars'} || {}
438 6 242 $self->{'SYNTAX'} || 'hte'

or 3 conditions

line l !l&&r !l&&!r condition
44 2 18 277 $self->{'NO_TT'} || ($self->{'SYNTAX'} eq 'hte' ? 0 : 1)
73 279 0 18 !defined($self->{'EXPR'}) || $self->{'EXPR'}
115 0 0 32 $self->{'_no_interp'} or $n % 2
152 2 0 427 $pre_chomp ||= $self->{'PRE_CHOMP'}
184 2 0 0 $@ || $self->exception('parse', 'Error while looking for EXPR', undef, pos $$str_ref)
201 2 0 2 @{$node->[3];} < 3 or $node->[3][-3] ne '|'
215 0 54 0 $name ||= $val
218 2 26 2 $escape ||= lc $val
219 2 14 0 $default ||= $val
223 0 138 4 $name ||= $1
225 0 12 0 $name ||= $2
247 18 2 6 $escape eq 'html' or $escape eq '1'
274 72 28 309 $is_close or $dirs->{$func}[4]
337 2 0 403 $1 || $self->{'POST_CHOMP'}
403 0 0 248 $type eq 'filehandle' or $self->{'FILEHANDLE'}
0 0 248 $type eq 'arrayref' or $self->{'ARRAYREF'}
0 0 248 $type eq 'filename' or $self->{'FILENAME'}
0 0 248 $type eq 'scalarref' or $self->{'SCALARREF'}
404 0 0 0 $self->{'FILEHANDLE'} || $self->{'SOURCE'} || $self->throw('output', 'Missing source for type filehandle')
409 0 0 0 $self->{'ARRAYREF'} || $self->{'SOURCE'} || $self->throw('output', 'Missing source for type arrayref')
413 0 0 0 $self->{'FILENAME'} || $self->{'SOURCE'} || $self->throw('output', 'Missing source for type filename')
415 0 0 0 $self->{'SCALARREF'} || $self->{'SOURCE'} || $self->throw('output', 'Missing source for type scalarref')
434 0 0 0 $self->{'FILE_CACHE_DIR'} || $self->throw('output', 'Missing file_cache_dir')