| blib/lib/Dancer2/Plugin/OAuth2/Server.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 28 | 42 | 66.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 72 | 4 | 0 | 11 | defined $c_id && defined $type |
| 90 | 9 | 1 | 1 | $state_required and not defined $state |
| 10 | 0 | 1 | $state_required and not defined $state and not length $state | |
| 159 | 5 | 1 | 0 | $grant_type ne "authorization_code" and $grant_type ne "refresh_token" |
| 1 | 5 | 0 | $grant_type eq "authorization_code" and not defined $auth_code | |
| 1 | 5 | 0 | $grant_type eq "authorization_code" and not defined $url |
| line | l | !l | condition |
|---|---|---|---|
| 15 | 0 | 31 | $settings->{'server_class'} // "Dancer2::Plugin::OAuth2::Server::Simple" |
| 65 | 49 | 26 | $dsl->param($_) // undef |
| 89 | 2 | 9 | $settings->{'state_required'} // 0 |
| 130 | 0 | 6 | $settings->{'auth_code_ttl'} // 600 |
| 154 | 29 | 19 | $dsl->param($_) // undef |
| 198 | 0 | 5 | $settings->{'access_token_ttl'} // 3600 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 72 | 4 | 0 | 11 | not defined $c_id && defined $type or $type ne "code" |
| 159 | 2 | 0 | 6 | not defined $grant_type or $grant_type ne "authorization_code" and $grant_type ne "refresh_token" |
| 0 | 0 | 6 | not defined $grant_type or $grant_type ne "authorization_code" and $grant_type ne "refresh_token" or $grant_type eq "authorization_code" and not defined $auth_code | |
| 0 | 0 | 6 | not defined $grant_type or $grant_type ne "authorization_code" and $grant_type ne "refresh_token" or $grant_type eq "authorization_code" and not defined $auth_code or $grant_type eq "authorization_code" and not defined $url |