Branch Coverage

blib/lib/Catalyst/Controller.pm
Criterion Covered Total %
branch 61 70 87.1


line true false branch
48 12 2402 unless $c->forward($disp)
57 440 367 unless $begin
67 4 54 unless $c->state
74 801 0 if (ref $c->action and $c->action->can('execute') and $c->req->action)
86 0 806 unless $end
102 1 3 $self->isa('Catalyst') ? :
108 4 6461 unless ($c)
109 1 3 $self->isa('Catalyst') ? :
111 6320 145 ref $self ? :
112 228 6237 if exists $$hash{'namespace'}
120 0 3917 unless ($c)
121 0 0 $self->isa('Catalyst') ? :
123 3825 92 ref $self ? :
124 90 3827 if exists $$hash{'path'}
134 0 2632 unless 'Class::Inspector'->methods($class)
142 5311 190 if $isa->can('_action_cache')
150 16095 25274 unless $method
152 225 25049 if ($$attrs{'Private'} and keys %$attrs > 1)
154 0 225 if $c->debug
159 23938 1111 $namespace ? :
177 180 24869 exists $args{'attributes'}{'ActionClass'} ? :
181 180 24869 unless ('Class::Inspector'->loaded($class))
197 32748 0 if (my($key, $value) = $attr =~ /^(.*?)(?:\(\s*(.+?)\s*\))?$/)
200 10446 22302 if (defined $value)
201 3378 7068 unless $value =~ s/^'(.*)'$/$1/
207 24748 526 ref $self ? :
209 540 24734 if (exists $$hash{'actions'} or exists $$hash{'action'})
213 0 540 exists $$a{'*'} ? :
90 450 exists $$a{$name} ? :
222 32703 45 ref $raw eq 'ARRAY' ? :
225 5087 27706 if ($self->can($meth))
252 765 3692 if ($value =~ m[^/]) { }
3512 180 elsif (length $value) { }
272 180 45 unless ($value =~ s/^\^//)
280 90 45 unless ($value =~ s/^\+//)