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'}
120 2 2 2 defined builtin::reftype($props->{'TEMPLATE_PRECOMPILE_FILETEST'}) and builtin::reftype($props->{'TEMPLATE_PRECOMPILE_FILETEST'}) ne "CODE"
4 2 0 defined builtin::reftype($props->{'TEMPLATE_PRECOMPILE_FILETEST'}) and builtin::reftype($props->{'TEMPLATE_PRECOMPILE_FILETEST'}) ne "CODE" and not overload::StrVal($props->{'TEMPLATE_PRECOMPILE_FILETEST'}) =~ /^Regexp=/
135 6 0 0 $type && $type eq 'ARRAY'
287 7 2 4 not defined $vars and (builtin::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 builtin::reftype($file) || ''
292 11 2 $vars ||= {}
358 2 7 $options->{'TEMPLATE_NAME_GENERATOR'} || \&CGI::Application::Plugin::TT::__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