Condition Coverage

blib/lib/MVC/Neaf/View/TT.pm
Criterion Covered Total %
condition 7 15 46.6


or 2 conditions

line l !l condition
103 3 14 $tt_opt{'INCLUDE_PATH'} || []
112 0 17 delete $tt_opt{'LOAD_TEMPLATES'} || ['Template::Provider'->new(\%prov_opt)]
131 0 0 ref $preload || 'a scalar'

or 3 conditions

line l !l&&r !l&&!r condition
101 0 17 0 $self->{'engine'} ||= do { $tt_opt{'INCLUDE_PATH'} = $self->dir($tt_opt{'INCLUDE_PATH'} || []); my %prov_opt; foreach $_ (@opt_provider) { $prov_opt{$_} = $tt_opt{$_} if defined $tt_opt{$_}; } ; my $prov = delete $tt_opt{'LOAD_TEMPLATES'} || ['Template::Provider'->new(\%prov_opt)]; $self->{'engine_preload'} = "Template::Provider"->new({%prov_opt, "CACHE_SIZE", undef, "STAT_TTL", 4000000000}); $prov = [$self->{'engine_preload'}, @$prov]; "Template"->new(%tt_opt, "LOAD_TEMPLATES", $prov) }
150 20 0 1 $data->{'-template'} || $self->{'template'}
190 5 0 0 ref $self || $self