| lib/Plack/Middleware/OAuth/Google.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 6 | 7 | 85.7 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 2 | 3 | 66.6 |
| pod | 0 | 1 | 0.0 |
| total | 8 | 11 | 72.7 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Plack::Middleware::OAuth::Google; | ||||||
| 2 | 1 | 1 | 829 | use warnings; | |||
| 1 | 97 | ||||||
| 1 | 27 | ||||||
| 3 | 1 | 1 | 5 | use strict; | |||
| 1 | 1 | ||||||
| 1 | 65 | ||||||
| 4 | |||||||
| 5 | sub config { +{ | ||||||
| 6 | 0 | 0 | 0 | version => 2, | |||
| 7 | authorize_url => 'https://accounts.google.com/o/oauth2/auth', | ||||||
| 8 | access_token_url => 'https://accounts.google.com/o/oauth2/token', | ||||||
| 9 | response_type => 'code', | ||||||
| 10 | grant_type => 'authorization_code', | ||||||
| 11 | request_method => 'POST', | ||||||
| 12 | } } | ||||||
| 13 | |||||||
| 14 | 1; |