lib/Plack/Middleware/OAuth/Twitter.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::Twitter; | ||||||
2 | 1 | 1 | 862 | use warnings; | |||
1 | 1 | ||||||
1 | 22 | ||||||
3 | 1 | 1 | 4 | use strict; | |||
1 | 2 | ||||||
1 | 50 | ||||||
4 | |||||||
5 | sub config { { | ||||||
6 | 0 | 0 | 0 | version => 1, # oauth 1.0a | |||
7 | request_token_url => 'https://api.twitter.com/oauth/request_token', | ||||||
8 | request_token_method => 'POST', | ||||||
9 | |||||||
10 | access_token_url => 'https://api.twitter.com/oauth/access_token', | ||||||
11 | access_token_method => 'POST', | ||||||
12 | |||||||
13 | authorize_url => 'https://api.twitter.com/oauth/authenticate', | ||||||
14 | } } | ||||||
15 | |||||||
16 | 1; |