| blib/lib/Mojolicious/Plugin/SecureOnly.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 15 | 20 | 75.0 |
| line | true | false | branch |
|---|---|---|---|
| 11 | 3 | 0 | unless $app->config('SecureOnly') |
| 16 | 2 | 6 | if ($self->conf->{'not_modes'}) |
| 17 | 0 | 2 | unless $self->conf->{'not_modes'} |
| 1 | 1 | if grep {$_ eq $app->mode;} @{[] unless $self->conf->{'not_modes'};} | |
| 19 | 2 | 5 | if ($self->conf->{'modes'}) |
| 20 | 0 | 2 | unless $self->conf->{'modes'} |
| 1 | 1 | unless grep {$_ eq $app->mode;} @{[] unless $self->conf->{'modes'};} | |
| 23 | 0 | 6 | if $c->req->is_secure |
| 24 | 1 | 5 | if not $c->tx->req->reverse_proxy and detect_proxy($c) |
| 29 | 0 | 5 | if $self->conf->{'secureport'} |