Condition Coverage

lib/Template/Context.pm
Criterion Covered Total %
condition 59 89 66.2


and 3 conditions

line !l l&&!r l&&r condition
87 1731 0 1231 &blessed($name) and $name->isa('Template::Document')
106 0 125 19 $blocks and $template = $blocks->{$name}
144 4 0 3 &blessed($template) and $template->isa('Template::Exception')
4 3 0 &blessed($template) and $template->isa('Template::Exception') and $template->type eq 'file'
224 81 75 11 not $args || ref $name and $filter = $self->{'FILTER_CACHE'}{$name}
331 1300 0 290 &blessed($component) and $component->isa('Template::Document')
342 19 0 1305 &blessed($compiled) and $compiled->isa('Template::Document')
19 0 1305 &blessed($compiled) and $compiled->isa('Template::Document') and $tblocks = $compiled->blocks
373 1283 0 283 &blessed($component) and $component->isa('Template::Document')
499 110 0 32 &blessed($error) and $error->isa('Template::Exception')
110 0 0 &blessed($error) and $error->isa('Badger::Exception')
541 15 147 0 &blessed($error) and $error->isa('Template::Exception') || $error->isa('Badger::Exception')
681 0 0 1 &blessed($base) and $base->isa($VIEW_CLASS)

or 2 conditions

line l !l condition
120 3 0 $self->{'PREFIX_MAP'}{$prefix} || (return $self->throw('file', "no providers for template prefix '${prefix}'"))
333 17 273 $component->{'callers'} || []
441 1 0 $self->{'PREFIX_MAP'}{$prefix} || (return $self->throw('file', "no providers for file prefix '${prefix}'"))
511 5 0 $error ||= ''
622 0 0 $self->template(\$block) || (return undef)
851 474 0 $config->{$name} || 'Template::Config'->$method($config) || (return $self->error($Template::Config::ERROR))
858 1 157 $config->{'PREFIX_MAP'} || {}
882 13 145 $config->{'BLOCKS'} || {}
886 39 0 $self->template(\$block) || (return undef)
908 1 157 $config->{'RECURSION'} || 0
909 9 149 $config->{'EVAL_PERL'} || 0
910 8 150 $config->{'TRIM'} || 0
918 4 154 $config->{'DEBUG'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
87 1231 86 1645 &blessed($name) and $name->isa('Template::Document') or ref $name eq 'CODE'
127 0 0 1432 $self->{'PREFIX_MAP'}{'default'} || $self->{'LOAD_TEMPLATES'}
163 0 36 5 ref $shortname or not $self->{'EXPOSE_BLOCKS'}
224 77 4 86 $args || ref $name
270 33 0 1 $VIEW_CLASS->new($self, @_) || $self->throw(&Template::Constants::ERROR_VIEW, $VIEW_CLASS->error)
447 0 0 16 $self->{'PREFIX_MAP'}{'default'} || $self->{'LOAD_TEMPLATES'}
541 147 0 0 $error->isa('Template::Exception') || $error->isa('Badger::Exception')
866 6 0 152 $config->{'STASH'} || do { my $predefs = $config->{'VARIABLES'} || $config->{'PRE_DEFINE'} || {}; $predefs->{'_DEBUG'} = ($config->{'DEBUG'} || 0) & &Template::Constants::DEBUG_UNDEF ? 1 : 0 unless defined $predefs->{'_DEBUG'}; $predefs->{'_STRICT'} = $config->{'STRICT'}; return $self->error($Template::Config::ERROR) unless 'Template::Config'->stash($predefs) }