Branch Coverage

blib/lib/Catalyst/View/BasePerRequest.pm
Criterion Covered Total %
branch 43 216 19.9


line true false branch
33 0 0 if (scalar @args > 1) { }
47 0 0 ref $_[0] ? :
55 0 3 if $class->can("modify_init_args")
57 2 1 if scalar keys %status_codes
59 0 3 if scalar @injected_views
67 0 3 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 2 1 if (exists $merged_args->{'status_codes'})
111 138 69 if (scalar keys %status_codes)
112 132 6 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
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 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
128 1 2 if (exists $merged_args->{'lifecycle'})
130 1 0 unless $lifecycle =~ /^\+/
164 2 1 if $status and $r->status
167 0 3 if $self->has_status_codes and not $self->status_codes->{$r->status}
169 3 0 if not $r->content_type and $self->has_content_type
170 2 1 if $headers
183 6 18 &Scalar::Util::blessed($_) && $_->can('get_rendered') ? :
186 0 24 unless (eval {
199 0 0 if &Scalar::Util::blessed($err) and $err->can("rethrow")
207 6 18 if ($self->has_code)
218 12 6 &Scalar::Util::blessed($_) && $_->can('get_rendered') ? :
244 6 6 $options ? :
245 6 6 exists $options{'default'} ? :
248 6 6 exists $self->ctx->stash->{'view_blocks'}{$name} ? :
254 6 18 if ((ref $_[0] || '') eq 'CODE') { }
265 0 6 if $self->_content_exists($name)
273 0 6 unless $self->_content_exists($name)
281 0 6 unless $self->_content_exists($name)
290 0 0 unless $self->_content_exists($name)
298 0 6 unless $self->_content_exists($name)
308 18 6 exists $self->ctx->stash->{'view_blocks'}{$name} ? :