| lib/Plack/Middleware/OAuth/GitHub.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::GitHub; | ||||||
| 2 | 1 | 1 | 6642 | use warnings; | |||
| 1 | 3 | ||||||
| 1 | 34 | ||||||
| 3 | 1 | 1 | 5 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 58 | ||||||
| 4 | |||||||
| 5 | sub config { { | ||||||
| 6 | 0 | 0 | 0 | version => 2, | |||
| 7 | authorize_url => 'https://github.com/login/oauth/authorize', | ||||||
| 8 | access_token_url => 'https://github.com/login/oauth/access_token', | ||||||
| 9 | scope => 'user,public_repo' | ||||||
| 10 | } } | ||||||
| 11 | |||||||
| 12 | 1; |