File Coverage

blib/lib/WebService/Slack/WebApi/Oauth.pm
Criterion Covered Total %
statement 22 22 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 30 30 100.0


line stmt bran cond sub pod time code
1             package WebService::Slack::WebApi::Oauth;
2 3     3   3204 use strict;
  3         8  
  3         155  
3 3     3   19 use warnings;
  3         5  
  3         205  
4 3     3   19 use utf8;
  3         7  
  3         58  
5              
6 3     3   125 use parent 'WebService::Slack::WebApi::Base';
  3         6  
  3         17  
7              
8 3     3   2103 use WebService::Slack::WebApi::Oauth::V2;
  3         11  
  3         174  
9              
10             use Class::Accessor::Lite::Lazy (
11 3         40 ro_lazy => [qw/ v2 /],
12 3     3   25 );
  3         50  
13              
14             use WebService::Slack::WebApi::Generator (
15 3         57 access => {
16             client_id => 'Str',
17             client_secret => 'Str',
18             code => 'Str',
19             redirect_uri => { isa => 'Str', optional => 1 },
20             },
21             token => {
22             client_id => 'Str',
23             client_secret => 'Str',
24             code => 'Str',
25             redirect_uri => { isa => 'Str', optional => 1 },
26             single_channel => { isa => 'Bool', optional => 1 },
27             },
28 3     3   680 );
  3         5  
29              
30             sub _build_v2 {
31 3     3   5142 return WebService::Slack::WebApi::Oauth::V2->new(client => shift->client);
32             }
33              
34             1;
35