Branch Coverage

blib/lib/AnyEvent/HTTPD/Router.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
29 0 5 defined $dispatcher ? :
38 1 1 unless ($matched)
47 0 5 if $auto_respond_404
49 0 5 if ($routes)
63 1 6 if ($verb =~ /^:/u) { }
3 3 elsif (grep {$verb eq $_;} @{$$self{'known_methods'};}) { }
77 1 11 if @_ == 0
78 1 10 if @_ % 3 != 0
85 0 10 ref $verbs eq 'ARRAY' ? :
89 1 9 if (not ref $cb eq 'CODE') { }
2 7 elsif (not $path =~ m[^/]u) { }
96 3 4 unless $self->_check_verb($verb, \%methods)