Branch Coverage

blib/lib/Catalyst/View/BasePerRequest.pm
Criterion Covered Total %
branch 39 206 18.9


line true false branch
33 0 0 if (scalar @args > 1) { }
47 0 0 ref $_[0] ? :
55 0 2 if $class->can("modify_init_args")
57 1 1 if scalar keys %status_codes
59 0 2 if scalar @injected_views
67 0 2 if (my $views = $merged_args->{'views'})
74 0 0 if ((ref $options_proto || '') eq 'ARRAY') { }
78 0 0 (ref $args_proto[0] || '') eq 'CODE' ? :
86 0 0 $global_args_generator ? :
104 1 1 if (exists $merged_args->{'status_codes'})
111 69 69 if (scalar keys %status_codes)
112 66 3 unless $status_codes{$code}
115 0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
1 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 1 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
0 0 if @headers
159 2 1 if $status and $r->status
162 0 3 if $self->has_status_codes and not $self->status_codes->{$r->status}
164 3 0 if not $r->content_type and $self->has_content_type
165 2 1 if $headers
178 6 6 &Scalar::Util::blessed($_) && $_->can('get_rendered') ? :
181 0 12 unless (eval {
194 0 0 if &Scalar::Util::blessed($err) and $err->can("rethrow")
202 6 6 if ($self->has_code)
213 0 6 &Scalar::Util::blessed($_) && $_->can('get_rendered') ? :
239 6 6 $options ? :
240 6 6 exists $options{'default'} ? :
243 6 6 exists $self->ctx->stash->{'view_blocks'}{$name} ? :
249 6 18 if ((ref $_[0] || '') eq 'CODE') { }
260 0 6 if $self->_content_exists($name)
268 0 6 unless $self->_content_exists($name)
276 0 6 unless $self->_content_exists($name)
285 0 0 unless $self->_content_exists($name)
293 0 6 unless $self->_content_exists($name)
303 18 6 exists $self->ctx->stash->{'view_blocks'}{$name} ? :