blib/lib/Amon2/Web/Dispatcher/RouterBoom.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 24 | 66.6 |
line | true | false | branch |
---|---|---|---|
38 | 7 | 7 | if (ref $dest eq 'CODE') { } |
42 | 7 | 0 | $base ? : |
43 | 7 | 0 | if defined $method |
47 | 8 | 6 | if ($method eq 'get') { } |
2 | 4 | elsif ($method eq 'post') { } | |
2 | 2 | elsif ($method eq 'put') { } | |
2 | 0 | elsif ($method eq 'delete_') { } | |
68 | 15 | 0 | if (my($dest, $captured, $method_not_allowed) = $class->router->match($env->{'REQUEST_METHOD'}, $env->{'PATH_INFO'})) { } |
69 | 0 | 15 | if ($method_not_allowed) |
74 | 8 | 7 | if ($dest->{'code'}) { } |
82 | 0 | 15 | if ($@) |
83 | 0 | 0 | if ($class->can('handle_exception')) { } |