File Coverage

blib/lib/Telegram/Bot/Object/ChatMember.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 5 60.0
pod 1 2 50.0
total 13 17 76.4


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::ChatMember;
2             $Telegram::Bot::Object::ChatMember::VERSION = '0.029';
3             # ABSTRACT: The base class for the Telegram type "ChatMember".
4              
5              
6 2     2   13 use Mojo::Base 'Telegram::Bot::Object::Base';
  2         3  
  2         17  
7              
8 2     2   476 use Telegram::Bot::Object::User;
  2         5  
  2         12  
9              
10 2     2   52 use Data::Dumper;
  2         4  
  2         793  
11              
12             has 'status';
13             has 'user';
14              
15             has 'can_add_web_page_previews'; # optional
16             has 'can_be_edited'; # optional
17             has 'can_change_info'; # optional
18             has 'can_delete_messages'; # optional
19             has 'can_delete_stories'; # optional
20             has 'can_edit_messages'; # optional
21             has 'can_edit_stories'; # optional
22             has 'can_invite_users'; # optional
23             has 'can_manage_chat'; # optional
24             has 'can_manage_topics'; # optional
25             has 'can_manage_video_chats'; # optional
26             has 'can_manage_voice_chats'; # optional
27             has 'can_pin_messages'; # optional
28             has 'can_post_messages'; # optional
29             has 'can_post_stories'; # optional
30             has 'can_promote_members'; # optional
31             has 'can_restrict_members'; # optional
32             has 'can_send_audios'; # optional
33             has 'can_send_documents'; # optional
34             has 'can_send_messages'; # optional
35             has 'can_send_other_messages'; # optional
36             has 'can_send_photos'; # optional
37             has 'can_send_polls'; # optional
38             has 'can_send_video_notes'; # optional
39             has 'can_send_videos'; # optional
40             has 'can_send_voice_notes'; # optional
41             has 'custom_title'; # optional
42             has 'is_anonymous'; # optional
43             has 'until_date'; # optional
44              
45              
46             sub fields {
47             return {
48 0     0 0   scalar => [qw/status can_add_web_page_previews can_be_edited
49             can_change_info can_delete_messages can_delete_stories
50             can_edit_messages can_edit_stories can_invite_users
51             can_manage_chat can_manage_topics can_manage_video_chats
52             can_manage_voice_chats can_pin_messages can_post_messages
53             can_post_stories can_promote_members can_restrict_members
54             can_send_audios can_send_documents can_send_messages
55             can_send_other_messages can_send_photos can_send_polls
56             can_send_video_notes can_send_videos can_send_voice_notes
57             custom_title is_anonymous until_date/],
58             'Telegram::Bot::Object::User' => [qw/user/],
59             };
60             }
61              
62       0 1   sub arrays {
63             }
64              
65             1;
66              
67             __END__