Condition Coverage

blib/lib/HTML/Mason/Request.pm
Criterion Covered Total %
condition 73 98 74.4


and 3 conditions

line !l l&&!r l&&r condition
267 5 436 12 $request_comp and $self->{'declined_comps'}{$request_comp->comp_id}
329 431 12 1 $self->{'autoflush'} and not $self->interp->compiler->enable_autoflush
336 443 0 36 $err and not $self->_aborted_or_declined($err)
346 0 3 453 defined $self->{'dhandler_name'} && length $self->{'dhandler_name'}
517 347 12 82 $err and not $self->_aborted_or_declined($err)
591 0 2 80 exists $params{'comp'} and not ref $params{'comp'}
1081 4 3 1 not $c and defined $error
1118 399 0 5 $current_comp->is_subcomp and my $subcomp = $current_comp->owner->subcomps($path)
1143 1 1 2 my $comp = shift @callers and not defined $index
1260 239 24 471 $self->{'top_stack'}[7] && !defined($mods{'store'})
1423 7 0 140 $self->{'top_stack'}[7] and $self->{'top_stack'}[2]
1427 138 0 2 $comp->has_filter and defined $comp->filter
1527 3 1 3 $comp->is_subcomp and not $comp->is_method

or 2 conditions

line l !l condition
275 2 3 $path ||= "/"
677 0 0 delete $options{'chi_root_class'} || 'CHI'
735 10 20 $options{'action'} || 'retrieve'
736 18 12 $options{'key'} || 'main'
831 3 24 delete $options{'expires_in'} || delete $options{'expire_in'} || 'never'
832 7 23 delete $options{'key'} || '__mason_cache_self__'
889 18 8 $tag ||= "DEFAULT"
891 22 4 $top_stack->[6] ||= {}
906 21 1 $output ||= \$dummy
907 20 2 $retval ||= \$dummy

or 3 conditions

line l !l&&r !l&&!r condition
566 0 7 0 local $HTML::Mason::Commands::m ||= $self
653 6 8 134 $self->aborted($err) || $self->declined($err)
682 0 0 0 exists $options{'driver'} or exists $options{'driver_class'}
686 0 0 0 $options{'root_dir'} ||= $self->interp->cache_dir
690 0 81 1 $options{'cache_root'} ||= $self->interp->cache_dir
691 0 82 0 $options{'namespace'} ||= compress_path($self->current_comp->comp_id)
943 13 0 9 not defined $comp->dynamic_subs_request or $comp->dynamic_subs_request ne $m
1039 76 722 0 $current_comp ||= $self->{'top_stack'}[0]
1101 1 0 0 $$error ||= "could not find component for path '${owner_path}'\n"
1239 2 7 0 $error || "could not find component for path '${path}'\n"
1481 6 2 34 $index < 0 or $index >= $depth
1527 1 4 7 not $path or $path =~ /^(?:SELF|PARENT|REQUEST)(?:\:..*)?$/
5 0 7 not $path or $path =~ /^(?:SELF|PARENT|REQUEST)(?:\:..*)?$/ or $comp->is_subcomp and not $comp->is_method