Branch Coverage

blib/lib/AnyEvent/HTTPD/Router/DefaultDispatcher.pm
Criterion Covered Total %
branch 13 16 81.2


line true false branch
22 10 1 unless (exists $self->{'routes'}{$path})
44 11 0 if ($method eq 'GET' or $method eq 'POST')
45 0 11 if (@path[-1] =~ s/:(\w+)$//u)
56 18 0 if (my $cb = $dispatch_entry->{'callbacks'}{$method})
58 9 9 if (my $variables = _match_paths(\@path, $dispatch_entry->{'segments'}))
81 2 41 if ($routing_seq eq '*') { }
28 13 elsif ($routing_seq eq $request_seq) { }
4 9 elsif ($routing_seq =~ /^\:(.+)$/u and defined $request_seq) { }