Branch Coverage

lib/PAGI/Endpoint/HTTP.pm
Criterion Covered Total %
branch 11 16 68.7


line true false branch
24 11 17 if $self->can($method)
27 4 0 if $self->can("get") and not $self->can("head")
29 4 0 unless grep {$_ eq "OPTIONS";} @allowed
38 1 6 if ($http_method eq "options")
39 0 1 if ($self->can("options"))
48 1 0 if ($http_method eq "head" and not $self->can("head") and $self->can("get"))
53 4 2 if ($self->can($http_method))
72 0 1 unless $type eq "http"