Condition Coverage

blib/lib/CGI/Application/Plugin/TT.pm
Criterion Covered Total %
condition 29 47 61.7


and 3 conditions

line !l l&&!r l&&r condition
83 0 16 0 @_ and defined $$self{'__TT'}
117 2 2 2 defined &Scalar::Util::reftype($$props{'TEMPLATE_PRECOMPILE_FILETEST'}) and &Scalar::Util::reftype($$props{'TEMPLATE_PRECOMPILE_FILETEST'}) ne 'CODE'
4 2 0 defined &Scalar::Util::reftype($$props{'TEMPLATE_PRECOMPILE_FILETEST'}) and &Scalar::Util::reftype($$props{'TEMPLATE_PRECOMPILE_FILETEST'}) ne 'CODE' and not overload::StrVal($$props{'TEMPLATE_PRECOMPILE_FILETEST'}) =~ /^Regexp=/
134 6 0 0 $type && $type eq 'ARRAY'
287 7 2 4 not defined $vars and (&Scalar::Util::reftype($file) || '') eq 'HASH'

or 2 conditions

line l !l condition
84 0 16 $$self{'__TT_CONFIG'} ||= {}
87 0 2 ${$class . '::__TT_CONFIG';} ||= {}
185 16 13 $$self{'__TT_PARAMS'} ||= {}
287 4 2 &Scalar::Util::reftype($file) || ''
292 11 2 $vars ||= {}
358 2 7 $$options{'TEMPLATE_NAME_GENERATOR'} || \&__tt_template_name
380 6 1 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
60 18 0 0 'Template'->new($$options{'TEMPLATE_OPTIONS'}) || carp(q[Can't load Template])
62 0 0 0 'Template'->new || carp(q[Can't load Template])
64 2 16 0 $frompkg || $self
130 6 0 0 not defined $type or $type eq 'ARRAY'
291 8 5 0 $file ||= $self->tt_template_name(1)
312 0 13 0 $params{'c'} ||= $self