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 1706 0 1214 blessed $name and $name->isa('Template::Document')
105 0 122 19 $blocks and $template = $$blocks{$name}
144 3 0 3 blessed $template and $template->isa('Template::Exception')
3 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 1283 0 285 blessed $component and $component->isa('Template::Document')
342 19 0 1287 blessed $compiled and $compiled->isa('Template::Document')
19 0 1287 blessed $compiled and $compiled->isa('Template::Document') and $tblocks = $compiled->blocks
373 1268 0 278 blessed $component and $component->isa('Template::Document')
499 108 0 30 blessed $error and $error->isa('Template::Exception')
108 0 0 blessed $error and $error->isa('Badger::Exception')
541 15 141 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 268 $$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 444 0 $$config{$name} || 'Template::Config'->$method($config) || (return $self->error($Template::Config::ERROR))
858 1 147 $$config{'PREFIX_MAP'} || {}
882 13 135 $$config{'BLOCKS'} || {}
886 39 0 $self->template(\$block) || (return undef)
908 1 147 $$config{'RECURSION'} || 0
909 9 139 $$config{'EVAL_PERL'} || 0
910 8 140 $$config{'TRIM'} || 0
918 4 144 $$config{'DEBUG'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
87 1214 86 1620 blessed $name and $name->isa('Template::Document') or ref $name eq 'CODE'
127 0 1411 0 $$self{'PREFIX_MAP'}{'default'} || $$self{'LOAD_TEMPLATES'}
163 0 35 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 16 0 $$self{'PREFIX_MAP'}{'default'} || $$self{'LOAD_TEMPLATES'}
541 141 0 0 $error->isa('Template::Exception') || $error->isa('Badger::Exception')
866 6 0 142 $$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) }