Branch Coverage

blib/lib/WebNano/Controller.pm
Criterion Covered Total %
branch 29 36 80.5


line true false branch
19 0 2 if defined $self->_req
36 3 68 unless defined $name and length $name
38 49 22 if (my $map = $self->url_map)
39 41 8 if (ref $map eq 'HASH')
40 2 39 if $$map{$name}
42 8 41 if (ref $map eq 'ARRAY')
43 2 6 if grep {$_ eq $name;} @$map
46 67 4 unless $action
47 37 34 unless ($action)
49 37 0 if $method eq 'GET' or $method eq 'POST'
52 35 36 if ($action)
55 0 71 if not defined $out and $self->DEBUG
70 35 0 if defined $to
71 0 35 unless length $to
74 5 29 unless ($controller_class)
75 0 5 if $self->DEBUG
78 0 29 if $self->DEBUG
91 36 35 if defined $out or not $self->search_subcontrollers