File Coverage

blib/lib/WebService/Slack/WebApi/Channels.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package WebService::Slack::WebApi::Channels;
2 3     3   2293 use strict;
  3         10  
  3         90  
3 3     3   16 use warnings;
  3         6  
  3         72  
4 3     3   15 use utf8;
  3         5  
  3         15  
5              
6 3     3   74 use parent 'WebService::Slack::WebApi::Base';
  3         6  
  3         14  
7              
8             use WebService::Slack::WebApi::Generator (
9 3         122 archive => {
10             channel => 'Str',
11             },
12             create => {
13             name => 'Str',
14             validate => { isa => 'Bool', optional => 1 },
15             },
16             history => {
17             channel => 'Str',
18             count => { isa => 'Int', optional => 1 },
19             inclusive => { isa => 'Bool', optional => 1 },
20             latest => { isa => 'Str', optional => 1 },
21             oldest => { isa => 'Str', optional => 1 },
22             unreads => { isa => 'Bool', optional => 1 },
23             },
24             info => {
25             channel => 'Str',
26             },
27             invite => {
28             channel => 'Str',
29             user => 'Str',
30             },
31             join => {
32             name => 'Str',
33             validate => { isa => 'Bool', optional => 1 },
34             },
35             kick => {
36             channel => 'Str',
37             user => 'Str',
38             },
39             leave => {
40             channel => 'Str',
41             },
42             list => {
43             cursor => { isa => 'Str', optional => 1 },
44             exclude_archived => { isa => 'Bool', optional => 1 },
45             exclude_members => { isa => 'Bool', optional => 1 },
46             limit => { isa => 'Int', optional => 1 },
47             },
48             mark => {
49             channel => 'Str',
50             ts => 'Str',
51             },
52             rename => {
53             channel => 'Str',
54             name => 'Str',
55             validate => { isa => 'Bool', optional => 1 },
56             },
57             replies => {
58             channel => 'Str',
59             thread_ts => 'Str',
60             },
61             set_purpose => {
62             channel => 'Str',
63             purpose => 'Str',
64             },
65             set_topic => {
66             channel => 'Str',
67             topic => 'Str',
68             },
69             unarchive => {
70             channel => 'Str',
71             },
72 3     3   656 );
  3         13  
73              
74             1;
75