Branch Coverage

blib/lib/Catalyst/Controller.pm
Criterion Covered Total %
branch 90 100 90.0


line true false branch
95 6996 79 unless delete $self->_controller_actions->{'*'}
134 37 2790 unless $c->forward($disp)
143 653 300 unless $begin
146 0 300 if (@{$c->error;}) { }
163 2 34 unless $c->state
170 947 0 if (ref $c->action and $c->action->can("execute") and defined $c->req->action)
177 26 890 if (@{$c->error;}) { }
187 281 646 unless $end
194 4 61 $self->isa('Catalyst') ? :
250 0 6515 unless $meta->can("get_nearest_methods_with_attributes")
260 0 655 unless $meta->find_method_by_name($_)
263 6367 148 if ref $self
281 147 0 if (not &blessed($self) and $self eq $c and scalar @methods)
283 2 145 if (scalar @really_bad_methods)
292 69083 81 $method->can('attributes') ? :
294 0 69164 if ($attrs->{'Private'} and keys %$attrs > 1)
296 0 0 if $c->debug
301 65435 3729 $namespace ? :
334 918 68246 exists $args{'attributes'}{'ActionClass'} ? :
348 316 68848 unless Class::MOP::does_metaclass_exist($class)
351 36599 32565 unless ($args{'name'} =~ /^_(DISPATCH|BEGIN|AUTO|ACTION|END)$/)
355 1818 34781 if @roles
362 68427 737 ref $self ? :
365 67820 1344 unless $action_args->{'*'}
366 68916 248 unless $$action_args{$args{'name'}}
376 36597 2 &blessed($self) ? :
36113 486 unless $args{'attributes'}{'Does'}
384 1308 35291 if $args{'attributes'}{'Method'}
387 13 36586 if $args{'attributes'}{'Consumes'}
390 8 36591 if $args{'attributes'}{'Scheme'}
393 8 36591 if $args{'attributes'}{'Query'}
406 96081 0 if (my($key, $value) = $attr =~ /^(.*?)(?:\(\s*(.+?)?\s*\))?$/)
409 35945 60136 if (defined $value)
410 11908 24037 unless $value =~ s/^'(.*)'$/$1/
417 68427 737 if (ref $self) { }
431 162 984 ref $_ eq 'ARRAY' ? :
654 68510 exists $actions_config->{$name} ? :
441 27592 41572 unless $raw_attributes{'Private'}
457 95998 16584 ref $values eq 'ARRAY' ? :
459 44321 68425 if (my $code = $self->can($meth)) { }
462 29147 15417 $key eq $new_key ? :
494 584 14780 unless defined $value
495 2140 13224 if ($value =~ m[^/]) { }
12631 593 elsif (length $value) { }
509 11469 910 if (defined $value and length $value) { }
510 324 11145 if ($value eq '.') { }
324 10821 elsif (my($rel, $rest) = $value =~ m[^((?:\.{2}/)+)(.*)$]) { }
6555 4266 elsif (not $value =~ m[^/]) { }
520 6408 147 if ($action_ns) { }
576 7561 0 $self->can('_action_role_prefix') ? :